Skip to content

Commit 5cb5d20

Browse files
Fix test failures
1 parent 52d3de7 commit 5cb5d20

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/compile-fail/macro-context.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ macro_rules! m {
2020
//~| ERROR macro expansion ignores token `i`
2121
}
2222

23-
m!(); //~ NOTE the usage of `m!` is likely invalid in this item context
23+
m!(); //~ NOTE the usage of `m!` is likely invalid in item context
2424

2525
fn main() {
26-
let a: m!(); //~ NOTE the usage of `m!` is likely invalid in this type context
27-
let i = m!(); //~ NOTE the usage of `m!` is likely invalid in this expression context
26+
let a: m!(); //~ NOTE the usage of `m!` is likely invalid in type context
27+
let i = m!(); //~ NOTE the usage of `m!` is likely invalid in expression context
2828
match 0 {
29-
m!() => {} //~ NOTE the usage of `m!` is likely invalid in this pattern context
29+
m!() => {} //~ NOTE the usage of `m!` is likely invalid in pattern context
3030
}
3131

32-
m!(); //~ NOTE the usage of `m!` is likely invalid in this statement context
32+
m!(); //~ NOTE the usage of `m!` is likely invalid in statement context
3333
}

0 commit comments

Comments
 (0)