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.
2 parents cf9d77d + 47c5b6e commit 67c04afCopy full SHA for 67c04af
rust-version
@@ -1 +1 @@
1
-59f551a2dcf57c0d3d96ac5ef60e000524210469
+0309953232d9957aef4c7c5a24fcb30735b2066b
tests/compile-fail/validity/cast_fn_ptr1.rs
@@ -7,5 +7,5 @@ fn main() {
7
let g: fn(*const i32) = unsafe { std::mem::transmute(f as fn(&i32)) };
8
9
g(0usize as *const i32)
10
- //~^ ERROR encountered a NULL reference
+ //~^ ERROR encountered a null reference
11
}
tests/compile-fail/validity/cast_fn_ptr2.rs
let g: fn() -> &'static i32 = unsafe { std::mem::transmute(f as fn() -> *const i32) };
let _x = g();
0 commit comments