2017-06-22 16:42:23 -05:00
|
|
|
#![feature(intrinsics)]
|
|
|
|
|
|
|
|
mod rusti {
|
|
|
|
extern "rust-intrinsic" {
|
|
|
|
pub fn cttz_nonzero<T>(x: T) -> T;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
unsafe {
|
2018-11-20 07:11:27 -06:00
|
|
|
use crate::rusti::*;
|
2017-06-22 16:42:23 -05:00
|
|
|
|
2019-04-21 06:18:05 -05:00
|
|
|
cttz_nonzero(0u8); //~ ERROR cttz_nonzero called on 0
|
2017-06-22 16:42:23 -05:00
|
|
|
}
|
|
|
|
}
|