We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b41b71 commit 097f8f9Copy full SHA for 097f8f9
tests/run-pass/extern_types.rs
@@ -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