@@ -7,24 +7,44 @@ error: unexpected token: `||
77LL | #![u=||{static d=||1;}]
88 | ^^^^^^^^^^^^^^^^^
99
10+ error: unexpected token: `{
11+ impl std::ops::Neg for i8 { }
12+ }`
13+ --> $DIR/issue-90873.rs:7:6
14+ |
15+ LL | #![a={impl std::ops::Neg for i8 {}}]
16+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17+
1018error: cannot find attribute `u` in this scope
1119 --> $DIR/issue-90873.rs:1:4
1220 |
1321LL | #![u=||{static d=||1;}]
1422 | ^
1523
24+ error: cannot find attribute `a` in this scope
25+ --> $DIR/issue-90873.rs:7:4
26+ |
27+ LL | #![a={impl std::ops::Neg for i8 {}}]
28+ | ^
29+
1630error[E0601]: `main` function not found in crate `issue_90873`
1731 --> $DIR/issue-90873.rs:1:1
1832 |
19- LL | #![u=||{static d=||1;}]
20- | ^^^^^^^^^^^^^^^^^^^^^^^ consider adding a `main` function to `$DIR/issue-90873.rs`
33+ LL | / #![u=||{static d=||1;}]
34+ LL | |
35+ LL | |
36+ LL | |
37+ LL | |
38+ LL | |
39+ LL | | #![a={impl std::ops::Neg for i8 {}}]
40+ | |____________________________________^ consider adding a `main` function to `$DIR/issue-90873.rs`
2141
2242error: missing type for `static` item
2343 --> $DIR/issue-90873.rs:1:16
2444 |
2545LL | #![u=||{static d=||1;}]
2646 | ^ help: provide a type for the item: `d: <type>`
2747
28- error: aborting due to 4 previous errors
48+ error: aborting due to 6 previous errors
2949
3050For more information about this error, try `rustc --explain E0601`.
0 commit comments