]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-asm_sym.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-asm_sym.rs
1 // only-x86_64
2
3 use std::arch::asm;
4
5 fn bar<const N: usize>() {}
6
7 fn foo<const N: usize>() {
8     unsafe {
9         asm!("mov eax, {}", sym bar::<N>);
10         //~^ ERROR sym operands for inline assembly are unstable
11     }
12 }
13
14 fn main() {
15     unsafe {
16         asm!("mov eax, {}", sym foo::<0>);
17         //~^ ERROR sym operands for inline assembly are unstable
18     }
19 }