2017-06-22 14:42:23 -07:00
|
|
|
#![feature(intrinsics)]
|
|
|
|
|
|
|
|
mod rusti {
|
|
|
|
extern "rust-intrinsic" {
|
|
|
|
pub fn ctlz_nonzero<T>(x: T) -> T;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
unsafe {
|
2018-11-20 14:11:27 +01:00
|
|
|
use crate::rusti::*;
|
2017-06-22 14:42:23 -07:00
|
|
|
|
2019-08-03 20:54:57 +02:00
|
|
|
ctlz_nonzero(0u8); //~ ERROR `ctlz_nonzero` called on 0
|
2017-06-22 14:42:23 -07:00
|
|
|
}
|
|
|
|
}
|