mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
9 lines
333 B
Rust
9 lines
333 B
Rust
#![feature(core_intrinsics)]
|
|
|
|
fn main() {
|
|
let (x, y) = (1u32, 2u32);
|
|
let add = std::intrinsics::unchecked_add(x, y); //~ ERROR call to unsafe function
|
|
let sub = std::intrinsics::unchecked_sub(x, y); //~ ERROR call to unsafe function
|
|
let mul = std::intrinsics::unchecked_mul(x, y); //~ ERROR call to unsafe function
|
|
}
|