summaryrefslogtreecommitdiffstats
path: root/tests/ui/intrinsics-always-extern.rs
blob: 22951147d7d870fe79246c7c1cf4b84ce8d34560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![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() {
}