-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-inline-assemblyArea: Inline assembly (`asm!(…)`)Area: Inline assembly (`asm!(…)`)C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
I tried this code:
#![feature(global_asm)]
global_asm!{r#"
// ${num}
/* ${num} */
"#}
I expected to see this happen: Compiles without error (on nightly)
Instead, this happened (not sure if this is intended behavior or a bug):
error: there is no argument named `num`
--> src/lib.rs:3:5
|
3 | // ${num}
| ^^^^^
error: there is no argument named `num`
--> src/lib.rs:4:5
|
4 | /* ${num} */
| ^^^^^
Metadata
Metadata
Assignees
Labels
A-inline-assemblyArea: Inline assembly (`asm!(…)`)Area: Inline assembly (`asm!(…)`)C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.