]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/bad-interpolated-block.rs
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / bad-interpolated-block.rs
1 fn main() {}
2
3 macro_rules! m {
4     ($b:block) => {
5         'lab: $b; //~ ERROR cannot use a `block` macro fragment here
6         unsafe $b; //~ ERROR cannot use a `block` macro fragment here
7         |x: u8| -> () $b; //~ ERROR cannot use a `block` macro fragment here
8     }
9 }
10
11 fn foo() {
12     m!({});
13 }