fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
1012 B30 linesraw
1error: this file contains an un-closed delimiter
2  --> $DIR/missing-close-brace-in-trait.rs:12:66
3   |
4LL | trait T {
5   |         - un-closed delimiter
6...
7LL | fn main() {}
8   |                                                                  ^
9
10error: expected one of `async`, `const`, `extern`, `fn`, `type`, or `unsafe`, found keyword `struct`
11  --> $DIR/missing-close-brace-in-trait.rs:5:12
12   |
13LL | pub(crate) struct Bar<T>();
14   |            ^^^^^^ expected one of `async`, `const`, `extern`, `fn`, `type`, or `unsafe`
15
16error[E0601]: `main` function not found in crate `missing_close_brace_in_trait`
17  --> $DIR/missing-close-brace-in-trait.rs:1:1
18   |
19LL | / trait T {
20LL | |
21LL | |     fn foo(&self);
22LL | |
23...  |
24LL | |
25LL | | fn main() {}
26   | |_________________________________________________________________^ consider adding a `main` function to `$DIR/missing-close-brace-in-trait.rs`
27
28error: aborting due to 3 previous errors
29
30For more information about this error, try `rustc --explain E0601`.