fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
996 B33 linesraw
1error: this file contains an un-closed delimiter
2  --> $DIR/missing-close-brace-in-impl-trait.rs:12:53
3   |
4LL | impl T for () {
5   |               - un-closed delimiter
6...
7LL |
8   |                                                     ^
9
10error: expected one of `async`, `const`, `crate`, `default`, `extern`, `fn`, `pub`, `type`, `unsafe`, or `}`, found keyword `trait`
11  --> $DIR/missing-close-brace-in-impl-trait.rs:5:1
12   |
13LL | impl T for () {
14   |               - unclosed delimiter
15LL | 
16LL | fn foo(&self) {}
17   |                 -
18   |                 |
19   |                 expected one of 10 possible tokens here
20   |                 help: `}` may belong here
21LL | 
22LL | trait T {
23   | ^^^^^ unexpected token
24
25error[E0405]: cannot find trait `T` in this scope
26  --> $DIR/missing-close-brace-in-impl-trait.rs:1:6
27   |
28LL | impl T for () {
29   |      ^ not found in this scope
30
31error: aborting due to 3 previous errors
32
33For more information about this error, try `rustc --explain E0405`.