]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/impl-item-type-no-body-semantic-fail.stderr
Rollup merge of #72567 - GuillaumeGomez:cleanup-e0608, 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 not be safe to use and/or cause compiler crashes
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    = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
53
54 error[E0202]: associated types are not yet supported in inherent impls (see #8995)
55   --> $DIR/impl-item-type-no-body-semantic-fail.rs:9:5
56    |
57 LL |     type Y;
58    |     ^^^^^^^
59
60 error[E0202]: associated types are not yet supported in inherent impls (see #8995)
61   --> $DIR/impl-item-type-no-body-semantic-fail.rs:12:5
62    |
63 LL |     type Z: Ord;
64    |     ^^^^^^^^^^^^
65
66 error[E0202]: associated types are not yet supported in inherent impls (see #8995)
67   --> $DIR/impl-item-type-no-body-semantic-fail.rs:16:5
68    |
69 LL |     type W: Ord where Self: Eq;
70    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
71
72 error[E0202]: associated types are not yet supported in inherent impls (see #8995)
73   --> $DIR/impl-item-type-no-body-semantic-fail.rs:20:5
74    |
75 LL |     type W where Self: Eq;
76    |     ^^^^^^^^^^^^^^^^^^^^^^
77
78 error: aborting due to 10 previous errors; 1 warning emitted
79
80 For more information about this error, try `rustc --explain E0202`.