mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
8 lines
151 B
Rust
8 lines
151 B
Rust
#![allow(unnecessary_transmutes)]
|
|
use std::mem;
|
|
|
|
static FOO: bool = unsafe { mem::transmute(3u8) };
|
|
//~^ ERROR 0x03, but expected a bool
|
|
|
|
fn main() {}
|