Skip to content

Commit 097f8f9

Browse files
committed
small test for extern_type
1 parent 1b41b71 commit 097f8f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/run-pass/extern_types.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#![feature(extern_types)]
2+
3+
extern {
4+
type Foo;
5+
}
6+
7+
fn main() {
8+
let x: &Foo = unsafe { &*(16 as *const Foo) };
9+
let y: &Foo = &*x;
10+
}

0 commit comments

Comments
 (0)