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