2017-06-22 16:42:23 -05:00
|
|
|
#![feature(intrinsics)]
|
|
|
|
|
|
|
|
mod rusti {
|
|
|
|
extern "rust-intrinsic" {
|
|
|
|
pub fn ctlz_nonzero<T>(x: T) -> T;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
unsafe {
|
|
|
|
use rusti::*;
|
|
|
|
|
2018-07-15 05:00:02 -05:00
|
|
|
ctlz_nonzero(0u8); //~ ERROR constant evaluation error: ctlz_nonzero called on 0
|
2017-06-22 16:42:23 -05:00
|
|
|
}
|
|
|
|
}
|