Skip to content

Commit

Permalink
encountered a NULL reference -> encountered a null reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hyd-dev committed May 4, 2021
1 parent bdce1dd commit 47c5b6e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
59f551a2dcf57c0d3d96ac5ef60e000524210469
0309953232d9957aef4c7c5a24fcb30735b2066b
2 changes: 1 addition & 1 deletion tests/compile-fail/validity/cast_fn_ptr1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ fn main() {
let g: fn(*const i32) = unsafe { std::mem::transmute(f as fn(&i32)) };

g(0usize as *const i32)
//~^ ERROR encountered a NULL reference
//~^ ERROR encountered a null reference
}
2 changes: 1 addition & 1 deletion tests/compile-fail/validity/cast_fn_ptr2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ fn main() {
let g: fn() -> &'static i32 = unsafe { std::mem::transmute(f as fn() -> *const i32) };

let _x = g();
//~^ ERROR encountered a NULL reference
//~^ ERROR encountered a null reference
}

0 comments on commit 47c5b6e

Please sign in to comment.