@@ -7,24 +7,44 @@ error: unexpected token: `||
7
7
LL | #![u=||{static d=||1;}]
8
8
| ^^^^^^^^^^^^^^^^^
9
9
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
+
10
18
error: cannot find attribute `u` in this scope
11
19
--> $DIR/issue-90873.rs:1:4
12
20
|
13
21
LL | #![u=||{static d=||1;}]
14
22
| ^
15
23
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
+
16
30
error[E0601]: `main` function not found in crate `issue_90873`
17
31
--> $DIR/issue-90873.rs:1:1
18
32
|
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`
21
41
22
42
error: missing type for `static` item
23
43
--> $DIR/issue-90873.rs:1:16
24
44
|
25
45
LL | #![u=||{static d=||1;}]
26
46
| ^ help: provide a type for the item: `d: <type>`
27
47
28
- error: aborting due to 4 previous errors
48
+ error: aborting due to 6 previous errors
29
49
30
50
For more information about this error, try `rustc --explain E0601`.
0 commit comments