rust/tests/ui/asm/aarch64/parse-error.stderr
Folkert de Vries 85f9dce889
in aarch64 asm parse error tests, only test cases specific to that target
this is more in line with the x86 parse error tests. The cross-platform tests were more complete anyway
2025-05-19 11:11:55 +02:00

54 lines
1.6 KiB
Plaintext

error: explicit register arguments cannot have names
--> $DIR/parse-error.rs:9:18
|
LL | asm!("", a = in("x0") foo);
| ^^^^^^^^^^^^^^^^
error: positional arguments cannot follow named arguments or explicit register arguments
--> $DIR/parse-error.rs:15:35
|
LL | asm!("{1}", in("x0") foo, const bar);
| ------------ ^^^^^^^^^ positional argument
| |
| explicit register argument
error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/parse-error.rs:11:45
|
LL | asm!("{a}", in("x0") foo, a = const bar);
| ^^^ non-constant value
|
help: consider using `const` instead of `let`
|
LL - let mut bar = 0;
LL + const bar: /* Type */ = 0;
|
error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/parse-error.rs:13:45
|
LL | asm!("{a}", in("x0") foo, a = const bar);
| ^^^ non-constant value
|
help: consider using `const` instead of `let`
|
LL - let mut bar = 0;
LL + const bar: /* Type */ = 0;
|
error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/parse-error.rs:15:41
|
LL | asm!("{1}", in("x0") foo, const bar);
| ^^^ non-constant value
|
help: consider using `const` instead of `let`
|
LL - let mut bar = 0;
LL + const bar: /* Type */ = 0;
|
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0435`.