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

10 lines
312 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
//~| ERROR unrecognized intrinsic function: `baz`
fn main() {}