blob: 98d3a11ad027643ede5c575a27bdbabdb76e4f4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
#![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
}
|