rust/tests/compile-fail/intrinsics/ctlz_nonzero.rs
2020-04-11 11:36:55 +02:00

16 lines
250 B
Rust

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