]> git.proxmox.com Git - rustc.git/blob - tests/ui/attributes/issue-90873.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / attributes / issue-90873.stderr
1 error: unexpected expression: `||
2 {
3 static d: _ = || 1;
4 }`
5 --> $DIR/issue-90873.rs:1:6
6 |
7 LL | #![u=||{static d=||1;}]
8 | ^^^^^^^^^^^^^^^^^
9
10 error: unexpected expression: `{
11 impl std::ops::Neg for i8 {}
12 }`
13 --> $DIR/issue-90873.rs:6:6
14 |
15 LL | #![a={impl std::ops::Neg for i8 {}}]
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
18 error: cannot find attribute `u` in this scope
19 --> $DIR/issue-90873.rs:1:4
20 |
21 LL | #![u=||{static d=||1;}]
22 | ^
23
24 error: cannot find attribute `a` in this scope
25 --> $DIR/issue-90873.rs:6:4
26 |
27 LL | #![a={impl std::ops::Neg for i8 {}}]
28 | ^
29
30 error[E0601]: `main` function not found in crate `issue_90873`
31 --> $DIR/issue-90873.rs:6:37
32 |
33 LL | #![a={impl std::ops::Neg for i8 {}}]
34 | ^ consider adding a `main` function to `$DIR/issue-90873.rs`
35
36 error: missing type for `static` item
37 --> $DIR/issue-90873.rs:1:17
38 |
39 LL | #![u=||{static d=||1;}]
40 | ^ help: provide a type for the item: `: <type>`
41
42 error: aborting due to 6 previous errors
43
44 For more information about this error, try `rustc --explain E0601`.