Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Nov 24, 2015
1 parent 52d3de7 commit 5cb5d20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/compile-fail/macro-context.rs
Expand Up @@ -20,14 +20,14 @@ macro_rules! m {
//~| ERROR macro expansion ignores token `i`
}

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

fn main() {
let a: m!(); //~ NOTE the usage of `m!` is likely invalid in this type context
let i = m!(); //~ NOTE the usage of `m!` is likely invalid in this expression context
let a: m!(); //~ NOTE the usage of `m!` is likely invalid in type context
let i = m!(); //~ NOTE the usage of `m!` is likely invalid in expression context
match 0 {
m!() => {} //~ NOTE the usage of `m!` is likely invalid in this pattern context
m!() => {} //~ NOTE the usage of `m!` is likely invalid in pattern context
}

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

0 comments on commit 5cb5d20

Please sign in to comment.