about summary refs log tree commit diff
path: root/tests/ui/intrinsics/incorrect-transmute.rs
blob: 25fbc7a92ee7c1f20cda88bfc228b2603986d3cc (plain)
1
2
3
4
5
6
7
8
fn main() {
    transmute(); // does not ICE
    //~^ ERROR call to unsafe function `transmute` is unsafe and requires unsafe function or block
}

#[rustc_intrinsic]
//~^ ERROR the `#[rustc_intrinsic]` attribute is used to declare intrinsics as function items
unsafe fn transmute() {}