fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.0 KiB42 linesraw
1error: missing `for` in a trait impl
2  --> $DIR/impl-parsing.rs:4:11
3   |
4LL | impl Trait Type {}
5   |           ^ help: add `for` here
6
7error: missing `for` in a trait impl
8  --> $DIR/impl-parsing.rs:5:11
9   |
10LL | impl Trait .. {}
11   |           ^ help: add `for` here
12
13error: expected a trait, found type
14  --> $DIR/impl-parsing.rs:6:6
15   |
16LL | impl ?Sized for Type {}
17   |      ^^^^^^
18
19error: expected a trait, found type
20  --> $DIR/impl-parsing.rs:7:6
21   |
22LL | impl ?Sized for .. {}
23   |      ^^^^^^
24
25error: `default` is not followed by an item
26  --> $DIR/impl-parsing.rs:9:1
27   |
28LL | default unsafe FAIL
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
38   |
39   = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>
40
41error: aborting due to 6 previous errors
42