mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
17 lines
282 B
Rust
17 lines
282 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
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
}
|