

Improve error message when _ is used for in/inout asm operands by Amanieu · Pull...
source link: https://github.com/rust-lang/rust/pull/88209
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

This seems like a more general problem plaguing _
uses in an expression position. Like
error[E0658]: destructuring assignments are unstable
--> src/main.rs:3:5
|
3 | _;
| ^
|
= note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
error: in expressions, `_` can only be used on the left-hand side of an assignment
--> src/main.rs:3:5
|
3 | _;
| ^ `_` not allowed here
cc @estebank might be of interest to you.
Overall this seems like a good place to provide asm!
specific diagnostic. I would perhaps have chosen to word this as "_ is not a valid input operand" or somesuch, but this seems good regardless.
@bors r+
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK