]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/mismatched-braces/missing-close-brace-in-trait.stderr
Remove "here" from "expected one of X here"
[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:10: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 keyword `pub`
11   --> $DIR/missing-close-brace-in-trait.rs:4:1
12    |
13 LL | trait T {
14    |         - unclosed delimiter
15 LL |     fn foo(&self);
16    |                   -
17    |                   |
18    |                   expected one of 7 possible tokens
19    |                   help: `}` may belong here
20 LL | 
21 LL | pub(crate) struct Bar<T>();
22    | ^^^ unexpected token
23
24 error: aborting due to 2 previous errors
25