]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/impl-parsing.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / parser / impl-parsing.stderr
CommitLineData
2c00a5a8 1error: missing `for` in a trait impl
dfeec247 2 --> $DIR/impl-parsing.rs:4:11
2c00a5a8 3 |
532ac7d7 4LL | impl Trait Type {}
0731742a 5 | ^ help: add `for` here
2c00a5a8
XL
6
7error: missing `for` in a trait impl
dfeec247 8 --> $DIR/impl-parsing.rs:5:11
2c00a5a8 9 |
532ac7d7 10LL | impl Trait .. {}
0731742a 11 | ^ help: add `for` here
2c00a5a8
XL
12
13error: expected a trait, found type
dfeec247 14 --> $DIR/impl-parsing.rs:6:6
2c00a5a8 15 |
532ac7d7 16LL | impl ?Sized for Type {}
2c00a5a8
XL
17 | ^^^^^^
18
19error: expected a trait, found type
dfeec247 20 --> $DIR/impl-parsing.rs:7:6
2c00a5a8 21 |
532ac7d7 22LL | impl ?Sized for .. {}
2c00a5a8
XL
23 | ^^^^^^
24
74b04a01
XL
25error: `default` is not followed by an item
26 --> $DIR/impl-parsing.rs:9:1
2c00a5a8 27 |
532ac7d7 28LL | default unsafe FAIL
74b04a01
XL
29 | ^^^^^^^ the `default` qualifier
30 |
31 = note: only `fn`, `const`, `type`, or `impl` items may be prefixed by `default`
32
33error: expected item, found keyword `unsafe`
34 --> $DIR/impl-parsing.rs:9:9
35 |
36LL | default unsafe FAIL
37 | ^^^^^^ expected item
2c00a5a8 38
74b04a01 39error: aborting due to 6 previous errors
2c00a5a8 40