]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/mismatched-braces/missing-close-brace-in-trait.stderr
Reduce ammount of errors given unclosed delimiter
[rust.git] / src / test / ui / parser / mismatched-braces / missing-close-brace-in-trait.stderr
1 error: this file contains an un-closed delimiter
2   --> $DIR/missing-close-brace-in-trait.rs:11:66
3    |
4 LL | trait T {
5    |         - un-closed delimiter
6 ...
7 LL | fn main() {}
8    |                                                                  ^
9
10 error: expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `pub`
11   --> $DIR/missing-close-brace-in-trait.rs:5:1
12    |
13 LL | trait T {
14    |         - unclosed delimiter
15 LL |
16 LL |     fn foo(&self);
17    |                   -
18    |                   |
19    |                   expected one of 7 possible tokens here
20    |                   help: `}` may belong here
21 LL | 
22 LL | pub(crate) struct Bar<T>();
23    | ^^^ unexpected token
24
25 error[E0601]: `main` function not found in crate `missing_close_brace_in_trait`
26   --> $DIR/missing-close-brace-in-trait.rs:1:1
27    |
28 LL | / trait T {
29 LL | |
30 LL | |     fn foo(&self);
31 LL | |
32 ...  |
33 LL | |
34 LL | | fn main() {}
35    | |_________________________________________________________________^ consider adding a `main` function to `$DIR/missing-close-brace-in-trait.rs`
36
37 error: aborting due to 3 previous errors
38
39 For more information about this error, try `rustc --explain E0601`.