mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
12 lines
247 B
Rust
12 lines
247 B
Rust
#![feature(intrinsics)]
|
|
#![feature(rustc_attrs)]
|
|
|
|
extern "rust-intrinsic" {
|
|
fn size_of<T>() -> usize; //~ ERROR intrinsic safety mismatch
|
|
|
|
#[rustc_safe_intrinsic]
|
|
fn assume(b: bool); //~ ERROR intrinsic safety mismatch
|
|
}
|
|
|
|
fn main() {}
|