mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
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
|
|
|