rust/tests/fail/intrinsics/cttz_nonzero.rs
2022-06-01 10:53:38 -04:00

16 lines
250 B
Rust

#![feature(intrinsics)]
mod rusti {
extern "rust-intrinsic" {
pub fn cttz_nonzero<T>(x: T) -> T;
}
}
pub fn main() {
unsafe {
use crate::rusti::*;
cttz_nonzero(0u8); //~ ERROR `cttz_nonzero` called on 0
}
}