]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/bad-interpolated-block.rs
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / test / ui / parser / bad-interpolated-block.rs
1 #![feature(label_break_value)]
2
3 fn main() {}
4
5 macro_rules! m {
6     ($b:block) => {
7         'lab: $b; //~ ERROR cannot use a `block` macro fragment here
8         unsafe $b; //~ ERROR cannot use a `block` macro fragment here
9         |x: u8| -> () $b; //~ ERROR cannot use a `block` macro fragment here
10     }
11 }
12
13 fn foo() {
14     m!({});
15 }