mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 13:07:20 +00:00
9 lines
281 B
Rust
9 lines
281 B
Rust
fn main() {
|
|
read_via_copy();
|
|
//~^ ERROR call to unsafe function `read_via_copy` 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 read_via_copy() {}
|