]>
Commit | Line | Data |
---|---|---|
3c0e092e XL |
1 | // only-x86_64 |
2 | ||
a2a8927a | 3 | use std::arch::asm; |
3c0e092e | 4 | |
923072b8 FG |
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 | ||
3c0e092e XL |
14 | fn main() { |
15 | unsafe { | |
923072b8 | 16 | asm!("mov eax, {}", sym foo::<0>); |
3c0e092e XL |
17 | //~^ ERROR sym operands for inline assembly are unstable |
18 | } | |
19 | } |