2021-11-21 09:16:02 -06:00
|
|
|
error: unexpected token: `||
|
|
|
|
{
|
|
|
|
static d: _ = || 1;
|
|
|
|
}`
|
|
|
|
--> $DIR/issue-90873.rs:1:6
|
|
|
|
|
|
|
|
|
LL | #![u=||{static d=||1;}]
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-11-24 16:07:13 -06:00
|
|
|
error: unexpected token: `{
|
2021-12-01 13:45:14 -06:00
|
|
|
impl std::ops::Neg for i8 {}
|
2021-11-24 16:07:13 -06:00
|
|
|
}`
|
2022-01-20 18:15:39 -06:00
|
|
|
--> $DIR/issue-90873.rs:6:6
|
2021-11-24 16:07:13 -06:00
|
|
|
|
|
|
|
|
LL | #![a={impl std::ops::Neg for i8 {}}]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-11-21 09:16:02 -06:00
|
|
|
error: cannot find attribute `u` in this scope
|
|
|
|
--> $DIR/issue-90873.rs:1:4
|
|
|
|
|
|
|
|
|
LL | #![u=||{static d=||1;}]
|
|
|
|
| ^
|
|
|
|
|
2021-11-24 16:07:13 -06:00
|
|
|
error: cannot find attribute `a` in this scope
|
2022-01-20 18:15:39 -06:00
|
|
|
--> $DIR/issue-90873.rs:6:4
|
2021-11-24 16:07:13 -06:00
|
|
|
|
|
|
|
|
LL | #![a={impl std::ops::Neg for i8 {}}]
|
|
|
|
| ^
|
|
|
|
|
2021-11-21 09:16:02 -06:00
|
|
|
error[E0601]: `main` function not found in crate `issue_90873`
|
2022-01-20 18:15:39 -06:00
|
|
|
--> $DIR/issue-90873.rs:6:37
|
2021-11-21 09:16:02 -06:00
|
|
|
|
|
2022-01-20 18:15:39 -06:00
|
|
|
LL | #![a={impl std::ops::Neg for i8 {}}]
|
|
|
|
| ^ consider adding a `main` function to `$DIR/issue-90873.rs`
|
2021-11-21 09:16:02 -06:00
|
|
|
|
|
|
|
error: missing type for `static` item
|
|
|
|
--> $DIR/issue-90873.rs:1:16
|
|
|
|
|
|
|
|
|
LL | #![u=||{static d=||1;}]
|
|
|
|
| ^ help: provide a type for the item: `d: <type>`
|
|
|
|
|
2021-11-24 16:07:13 -06:00
|
|
|
error: aborting due to 6 previous errors
|
2021-11-21 09:16:02 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0601`.
|