Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encountered a NULL reference -> encountered a null reference #1788

Merged
merged 1 commit into from May 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}