Clarify error message when both asm! and global_asm! are unsupported
This commit is contained in:
parent
0df83f8e5e
commit
bb6bec1d55
3 changed files with 6 additions and 5 deletions
|
|
@ -18,9 +18,9 @@ trait Sized {}
|
|||
fn main() {
|
||||
unsafe {
|
||||
asm!("");
|
||||
//~^ ERROR asm! is unsupported on this target
|
||||
//~^ ERROR inline assembly is unsupported on this target
|
||||
}
|
||||
}
|
||||
|
||||
global_asm!("");
|
||||
//~^ ERROR asm! is unsupported on this target
|
||||
//~^ ERROR inline assembly is unsupported on this target
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
error[E0472]: asm! is unsupported on this target
|
||||
error[E0472]: inline assembly is unsupported on this target
|
||||
--> $DIR/bad-arch.rs:20:9
|
||||
|
|
||||
LL | asm!("");
|
||||
| ^^^^^^^^^
|
||||
|
||||
error[E0472]: asm! is unsupported on this target
|
||||
error[E0472]: inline assembly is unsupported on this target
|
||||
--> $DIR/bad-arch.rs:25:1
|
||||
|
|
||||
LL | global_asm!("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue