Skip to content

Commit a1fa462

Browse files
committed
Revise starts-with-template example
This test is believed to fail, so we should mark it with `compile_fail` rather than `ignore`. Let's wrap the comment. The compiler's error message, in this case, doesn't add any insight; let's remove the details of that.
1 parent 0de8337 commit a1fa462

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/inline-assembly.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,12 @@ core::arch::global_asm!(
292292
r[asm.attributes.starts-with-template]
293293
Syntactically there must be at least one template string before the first operand.
294294

295-
```rust, ignore
296-
// This is rejected because `a = out(reg) x` does not parse as a template string.
295+
```rust,compile_fail
296+
// This is rejected because `a = out(reg) x` does not parse as a
297+
// template string.
297298
core::arch::asm!(
298299
#[cfg(false)]
299-
a = out(reg) x, //~ ERROR expected token: `,`
300+
a = out(reg) x, // ERROR.
300301
"",
301302
);
302303
```

0 commit comments

Comments
 (0)