mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
6 lines
145 B
Rust
6 lines
145 B
Rust
#![allow(invalid_value)]
|
|
|
|
fn main() {
|
|
let _b: fn() = unsafe { std::mem::transmute(0usize) }; //~ ERROR encountered a null function pointer
|
|
}
|