rust/tests/ui/feature-gates/feature-gate-intrinsics.rs

9 lines
262 B
Rust

extern "rust-intrinsic" { //~ ERROR intrinsics are subject to change
fn bar(); //~ ERROR unrecognized intrinsic function: `bar`
}
extern "rust-intrinsic" fn baz() {} //~ ERROR intrinsics are subject to change
//~^ ERROR intrinsic must be in
fn main() {}