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