blob: bf12728d2152b0237f7fcb1710c52bb422222405 [file]
// { dg-do compile }
#![feature(intrinsics, lang_items, no_core)]
#![no_core]
#[lang = "sized"]
pub trait Sized {}
#[lang = "copy"]
pub trait Copy {}
extern "rust-intrinsic" {
pub fn ctlz_nonzero<T>(x: T) -> u32; // { dg-error "ctlz intrinsics can only be used with basic integer types .got 'bool'." }
}
fn main() {
unsafe {
let _ = ctlz_nonzero(true);
}
}