]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/impl-parsing.stderr
parse: recover `default` on free items.
[rust.git] / src / test / ui / parser / impl-parsing.stderr
1 error: missing `for` in a trait impl
2   --> $DIR/impl-parsing.rs:4:11
3    |
4 LL | impl Trait Type {}
5    |           ^ help: add `for` here
6
7 error: missing `for` in a trait impl
8   --> $DIR/impl-parsing.rs:5:11
9    |
10 LL | impl Trait .. {}
11    |           ^ help: add `for` here
12
13 error: expected a trait, found type
14   --> $DIR/impl-parsing.rs:6:6
15    |
16 LL | impl ?Sized for Type {}
17    |      ^^^^^^
18
19 error: expected a trait, found type
20   --> $DIR/impl-parsing.rs:7:6
21    |
22 LL | impl ?Sized for .. {}
23    |      ^^^^^^
24
25 error: unmatched `default`
26   --> $DIR/impl-parsing.rs:9:1
27    |
28 LL | default unsafe FAIL
29    | ^^^^^^^ the unmatched `default`
30
31 error: expected item, found keyword `unsafe`
32   --> $DIR/impl-parsing.rs:9:9
33    |
34 LL | default unsafe FAIL
35    |         ^^^^^^ expected item
36
37 error: aborting due to 6 previous errors
38