mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-22 20:47:48 +00:00
16 lines
242 B
Rust
16 lines
242 B
Rust
#![feature(intrinsics)]
|
|
|
|
mod rusti {
|
|
extern "rust-intrinsic" {
|
|
pub fn ctlz_nonzero<T>(x: T) -> T;
|
|
}
|
|
}
|
|
|
|
pub fn main() {
|
|
unsafe {
|
|
use rusti::*;
|
|
|
|
ctlz_nonzero(0u8); //~ ERROR: ctlz_nonzero called on 0
|
|
}
|
|
}
|