Skip to content

Commit 5b01528

Browse files
nikomatsakisbrson
authored andcommitted
new test
1 parent 215b1ab commit 5b01528

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// -*- rust -*-
2+
// error-pattern: unsafe operation requires unsafe function or block
3+
4+
fn f(p: *u8) {
5+
*p = 0u8;
6+
ret;
7+
}
8+
9+
fn main() {
10+
f();
11+
}

0 commit comments

Comments
 (0)