]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/bad-interpolated-block.rs
New upstream version 1.44.1+dfsg1
[rustc.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 }