mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
51 lines
1.5 KiB
Text
51 lines
1.5 KiB
Text
error: cannot use a `block` macro fragment here
|
|
--> $DIR/bad-interpolated-block.rs:5:15
|
|
|
|
|
LL | 'lab: $b;
|
|
| ------^^
|
|
| |
|
|
| the `block` fragment is within this context
|
|
...
|
|
LL | m!({});
|
|
| ------ in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
help: wrap this in another block
|
|
|
|
|
LL | 'lab: { $b };
|
|
| + +
|
|
|
|
error: cannot use a `block` macro fragment here
|
|
--> $DIR/bad-interpolated-block.rs:6:16
|
|
|
|
|
LL | unsafe $b;
|
|
| -------^^
|
|
| |
|
|
| the `block` fragment is within this context
|
|
...
|
|
LL | m!({});
|
|
| ------ in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
help: wrap this in another block
|
|
|
|
|
LL | unsafe { $b };
|
|
| + +
|
|
|
|
error: cannot use a `block` macro fragment here
|
|
--> $DIR/bad-interpolated-block.rs:7:23
|
|
|
|
|
LL | |x: u8| -> () $b;
|
|
| ^^ the `block` fragment is within this context
|
|
...
|
|
LL | m!({});
|
|
| ------ in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
help: wrap this in another block
|
|
|
|
|
LL | |x: u8| -> () { $b };
|
|
| + +
|
|
|
|
error: aborting due to 3 previous errors
|
|
|