]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/impl-item-type-no-body-semantic-fail.stderr
Rollup merge of #70649 - GuillaumeGomez:cleanup-e0468, r=Dylan-DPC
[rust.git] / src / test / ui / parser / impl-item-type-no-body-semantic-fail.stderr
1 error: associated type in `impl` without body
2   --> $DIR/impl-item-type-no-body-semantic-fail.rs:9:5
3    |
4 LL |     type Y;
5    |     ^^^^^^-
6    |           |
7    |           help: provide a definition for the type: `= <type>;`
8
9 error: associated type in `impl` without body
10   --> $DIR/impl-item-type-no-body-semantic-fail.rs:12:5
11    |
12 LL |     type Z: Ord;
13    |     ^^^^^^^^^^^-
14    |                |
15    |                help: provide a definition for the type: `= <type>;`
16
17 error: bounds on `type`s in `impl`s have no effect
18   --> $DIR/impl-item-type-no-body-semantic-fail.rs:12:13
19    |
20 LL |     type Z: Ord;
21    |             ^^^
22
23 error: associated type in `impl` without body
24   --> $DIR/impl-item-type-no-body-semantic-fail.rs:16:5
25    |
26 LL |     type W: Ord where Self: Eq;
27    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^-
28    |                               |
29    |                               help: provide a definition for the type: `= <type>;`
30
31 error: bounds on `type`s in `impl`s have no effect
32   --> $DIR/impl-item-type-no-body-semantic-fail.rs:16:13
33    |
34 LL |     type W: Ord where Self: Eq;
35    |             ^^^
36
37 error: associated type in `impl` without body
38   --> $DIR/impl-item-type-no-body-semantic-fail.rs:20:5
39    |
40 LL |     type W where Self: Eq;
41    |     ^^^^^^^^^^^^^^^^^^^^^-
42    |                          |
43    |                          help: provide a definition for the type: `= <type>;`
44
45 warning: the feature `generic_associated_types` is incomplete and may cause the compiler to crash
46   --> $DIR/impl-item-type-no-body-semantic-fail.rs:1:12
47    |
48 LL | #![feature(generic_associated_types)]
49    |            ^^^^^^^^^^^^^^^^^^^^^^^^
50    |
51    = note: `#[warn(incomplete_features)]` on by default
52
53 error[E0202]: associated types are not yet supported in inherent impls (see #8995)
54   --> $DIR/impl-item-type-no-body-semantic-fail.rs:9:5
55    |
56 LL |     type Y;
57    |     ^^^^^^^
58
59 error[E0202]: associated types are not yet supported in inherent impls (see #8995)
60   --> $DIR/impl-item-type-no-body-semantic-fail.rs:12:5
61    |
62 LL |     type Z: Ord;
63    |     ^^^^^^^^^^^^
64
65 error[E0202]: associated types are not yet supported in inherent impls (see #8995)
66   --> $DIR/impl-item-type-no-body-semantic-fail.rs:16:5
67    |
68 LL |     type W: Ord where Self: Eq;
69    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
70
71 error[E0202]: associated types are not yet supported in inherent impls (see #8995)
72   --> $DIR/impl-item-type-no-body-semantic-fail.rs:20:5
73    |
74 LL |     type W where Self: Eq;
75    |     ^^^^^^^^^^^^^^^^^^^^^^
76
77 error: aborting due to 10 previous errors
78
79 For more information about this error, try `rustc --explain E0202`.