2023-11-22 13:53:24 -06:00
|
|
|
error: expected `;`, found `#`
|
2024-02-26 14:47:10 -06:00
|
|
|
--> $DIR/properly-recover-from-trailing-outer-attribute-in-body-1.rs:4:47
|
2023-11-22 13:53:24 -06:00
|
|
|
|
|
|
|
|
LL | #[cfg(feature = )]
|
|
|
|
| ------------------ only `;` terminated statements or tail expressions are allowed after this attribute
|
|
|
|
LL | [1, 2, 3].iter().map().collect::<String>()
|
|
|
|
| ^ expected `;` here
|
|
|
|
LL | #[attr]
|
|
|
|
| - unexpected token
|
|
|
|
|
|
|
|
|
help: add `;` here
|
|
|
|
|
|
|
|
|
LL | [1, 2, 3].iter().map().collect::<String>();
|
|
|
|
| +
|
|
|
|
help: alternatively, consider surrounding the expression with a block
|
|
|
|
|
|
|
|
|
LL | { [1, 2, 3].iter().map().collect::<String>() }
|
|
|
|
| + +
|
|
|
|
|
|
|
|
error: expected statement after outer attribute
|
2024-02-26 14:47:10 -06:00
|
|
|
--> $DIR/properly-recover-from-trailing-outer-attribute-in-body-1.rs:5:5
|
2023-11-22 13:53:24 -06:00
|
|
|
|
|
|
|
|
LL | #[attr]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|