blob: a41607efc16b1f334b2d621e3d73da04e62f4eb2 [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 bswap<T>(x: T) -> T; // { dg-error "bswap intrinsics can only be used with basic integer types .got 'bool'." }
}
fn main() {
let _ = bswap(true);
}