rust/src/test/ui/feature-gates/feature-gate-intrinsics.rs
Mark Rousskov 7b3adc289e Ban non-extern rust intrinsics
Intrinsics can only be defined by the compiler.
2019-09-14 11:47:02 -04:00

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() {}