]> git.lizzy.rs Git - rust.git/blob - tests/ui/intrinsics/unchecked_math_unstable.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / intrinsics / unchecked_math_unstable.rs
1 fn main() {
2     let (x, y) = (1u32, 2u32);
3     unsafe {
4         let add = std::intrinsics::unchecked_add(x, y); //~ ERROR use of unstable library feature
5         let sub = std::intrinsics::unchecked_sub(x, y); //~ ERROR use of unstable library feature
6         let mul = std::intrinsics::unchecked_mul(x, y); //~ ERROR use of unstable library feature
7     }
8 }