2024-04-06 01:15:31 +00:00
|
|
|
fn main() {
|
|
|
|
|
transmute(); // does not ICE
|
2025-04-06 15:12:24 +02:00
|
|
|
//~^ ERROR call to unsafe function `transmute` is unsafe and requires unsafe function or block
|
2024-04-06 01:15:31 +00:00
|
|
|
}
|
|
|
|
|
|
2025-04-06 15:12:24 +02:00
|
|
|
#[rustc_intrinsic]
|
|
|
|
|
//~^ ERROR the `#[rustc_intrinsic]` attribute is used to declare intrinsics as function items
|
|
|
|
|
unsafe fn transmute() {}
|