summaryrefslogtreecommitdiffstats
path: root/src/test/ui/intrinsics/unchecked_math_unstable.rs
blob: 8869063d1cc3d9cd6ae8dc7b460fc13233c549c0 (plain)
1
2
3
4
5
6
7
8
fn main() {
    let (x, y) = (1u32, 2u32);
    unsafe {
        let add = std::intrinsics::unchecked_add(x, y); //~ ERROR use of unstable library feature
        let sub = std::intrinsics::unchecked_sub(x, y); //~ ERROR use of unstable library feature
        let mul = std::intrinsics::unchecked_mul(x, y); //~ ERROR use of unstable library feature
    }
}