]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-abi_amdgpu_kernel.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-abi_amdgpu_kernel.rs
1 // compile-flags: --crate-type=rlib
2 #![no_core]
3 #![feature(no_core, lang_items)]
4 #[lang="sized"]
5 trait Sized { }
6
7 extern "amdgpu-kernel" fn fu() {} //~ ERROR amdgpu-kernel ABI is experimental
8 //~^ ERROR is not a supported ABI
9
10 trait T {
11     extern "amdgpu-kernel" fn mu(); //~ ERROR amdgpu-kernel ABI is experimental
12     extern "amdgpu-kernel" fn dmu() {} //~ ERROR amdgpu-kernel ABI is experimental
13     //~^ ERROR is not a supported ABI
14 }
15
16 struct S;
17 impl T for S {
18     extern "amdgpu-kernel" fn mu() {} //~ ERROR amdgpu-kernel ABI is experimental
19     //~^ ERROR is not a supported ABI
20 }
21
22 impl S {
23     extern "amdgpu-kernel" fn imu() {} //~ ERROR amdgpu-kernel ABI is experimental
24     //~^ ERROR is not a supported ABI
25 }
26
27 type TAU = extern "amdgpu-kernel" fn(); //~ ERROR amdgpu-kernel ABI is experimental
28
29 extern "amdgpu-kernel" {} //~ ERROR amdgpu-kernel ABI is experimental
30 //~^ ERROR is not a supported ABI