2024-08-23 09:38:20 -05:00
|
|
|
error: invalid type for `const` operand
|
2024-08-29 15:48:05 -05:00
|
|
|
--> $DIR/const-refs-to-static.rs:10:19
|
2024-08-23 09:38:20 -05:00
|
|
|
|
|
|
|
|
LL | global_asm!("{}", const addr_of!(FOO));
|
|
|
|
| ^^^^^^-------------
|
|
|
|
| |
|
|
|
|
| is a `*const u8`
|
|
|
|
|
|
|
|
|
= help: `const` operands must be of an integer type
|
|
|
|
|
|
|
|
error: invalid type for `const` operand
|
2024-08-29 15:48:05 -05:00
|
|
|
--> $DIR/const-refs-to-static.rs:15:25
|
2024-08-23 09:38:20 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { asm!("{}", const addr_of!(FOO)) };
|
|
|
|
| ^^^^^^-------------
|
|
|
|
| |
|
|
|
|
| is a `*const u8`
|
|
|
|
|
|
|
|
|
= help: `const` operands must be of an integer type
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|