mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
18 lines
338 B
Rust
18 lines
338 B
Rust
#![feature(intrinsics)]
|
|
|
|
trait Foo {
|
|
extern "rust-intrinsic" fn foo(&self); //~ ERROR intrinsic must
|
|
}
|
|
|
|
impl Foo for () {
|
|
extern "rust-intrinsic" fn foo(&self) { //~ ERROR intrinsic must
|
|
}
|
|
}
|
|
|
|
extern "rust-intrinsic" fn hello() {//~ ERROR intrinsic must
|
|
//~^ ERROR unrecognized intrinsic function: `hello`
|
|
}
|
|
|
|
fn main() {
|
|
}
|