2019-12-01 09:25:45 +00:00
|
|
|
error: associated type in `impl` without body
|
2022-05-04 14:22:19 +00:00
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:6:5
|
2019-12-01 09:25:45 +00:00
|
|
|
|
|
|
|
|
LL | type Y;
|
|
|
|
| ^^^^^^-
|
|
|
|
| |
|
|
|
|
| help: provide a definition for the type: `= <type>;`
|
|
|
|
|
|
|
|
error: associated type in `impl` without body
|
2022-05-04 14:22:19 +00:00
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:9:5
|
2019-12-01 09:25:45 +00:00
|
|
|
|
|
|
|
|
LL | type Z: Ord;
|
|
|
|
| ^^^^^^^^^^^-
|
|
|
|
| |
|
|
|
|
| help: provide a definition for the type: `= <type>;`
|
|
|
|
|
2020-02-14 11:55:42 +00:00
|
|
|
error: bounds on `type`s in `impl`s have no effect
|
2022-05-04 14:22:19 +00:00
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:9:13
|
2019-12-01 09:25:45 +00:00
|
|
|
|
|
|
|
|
LL | type Z: Ord;
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: associated type in `impl` without body
|
2022-05-04 14:22:19 +00:00
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:13:5
|
2019-12-01 09:25:45 +00:00
|
|
|
|
|
|
|
|
LL | type W: Ord where Self: Eq;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^-
|
|
|
|
| |
|
|
|
|
| help: provide a definition for the type: `= <type>;`
|
|
|
|
|
2020-02-14 11:55:42 +00:00
|
|
|
error: bounds on `type`s in `impl`s have no effect
|
2022-05-04 14:22:19 +00:00
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:13:13
|
2019-12-01 09:25:45 +00:00
|
|
|
|
|
|
|
|
LL | type W: Ord where Self: Eq;
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: associated type in `impl` without body
|
2024-02-14 21:04:51 +00:00
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:18:5
|
2019-12-01 09:25:45 +00:00
|
|
|
|
|
|
|
|
LL | type W where Self: Eq;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^-
|
|
|
|
| |
|
|
|
|
| help: provide a definition for the type: `= <type>;`
|
|
|
|
|
2021-02-25 13:09:52 +00:00
|
|
|
error[E0658]: inherent associated types are unstable
|
2022-05-04 14:22:19 +00:00
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:6:5
|
2019-12-01 09:25:45 +00:00
|
|
|
|
|
|
|
|
LL | type Y;
|
|
|
|
| ^^^^^^^
|
2021-02-25 13:09:52 +00:00
|
|
|
|
|
|
|
|
= note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
|
|
|
|
= help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
|
2024-01-10 06:39:02 +00:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2019-12-01 09:25:45 +00:00
|
|
|
|
2021-02-25 13:09:52 +00:00
|
|
|
error[E0658]: inherent associated types are unstable
|
2022-05-04 14:22:19 +00:00
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:9:5
|
2019-12-01 09:25:45 +00:00
|
|
|
|
|
|
|
|
LL | type Z: Ord;
|
|
|
|
| ^^^^^^^^^^^^
|
2021-02-25 13:09:52 +00:00
|
|
|
|
|
|
|
|
= note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
|
|
|
|
= help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
|
2024-01-10 06:39:02 +00:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2019-12-01 09:25:45 +00:00
|
|
|
|
2021-02-25 13:09:52 +00:00
|
|
|
error[E0658]: inherent associated types are unstable
|
2022-05-04 14:22:19 +00:00
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:13:5
|
2019-12-01 09:25:45 +00:00
|
|
|
|
|
|
|
|
LL | type W: Ord where Self: Eq;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-02-25 13:09:52 +00:00
|
|
|
|
|
|
|
|
= note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
|
|
|
|
= help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
|
2024-01-10 06:39:02 +00:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2019-12-01 09:25:45 +00:00
|
|
|
|
2021-02-25 13:09:52 +00:00
|
|
|
error[E0658]: inherent associated types are unstable
|
2024-02-14 21:04:51 +00:00
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:18:5
|
2019-12-08 17:22:35 +00:00
|
|
|
|
|
|
|
|
LL | type W where Self: Eq;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2021-02-25 13:09:52 +00:00
|
|
|
|
|
|
|
|
= note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
|
|
|
|
= help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
|
2024-01-10 06:39:02 +00:00
|
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
2019-12-08 17:22:35 +00:00
|
|
|
|
2024-02-14 21:04:51 +00:00
|
|
|
error[E0277]: the trait bound `X: Eq` is not satisfied
|
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:13:23
|
|
|
|
|
|
|
|
|
LL | type W: Ord where Self: Eq;
|
|
|
|
| ^^^^^^^^ the trait `Eq` is not implemented for `X`
|
|
|
|
|
|
|
|
|
= help: see issue #48214
|
|
|
|
help: consider annotating `X` with `#[derive(Eq)]`
|
|
|
|
|
|
|
|
|
LL + #[derive(Eq)]
|
|
|
|
LL | struct X;
|
|
|
|
|
|
2024-03-07 22:09:00 +00:00
|
|
|
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
|
LL + #![feature(trivial_bounds)]
|
|
|
|
|
|
2024-02-14 21:04:51 +00:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `X: Eq` is not satisfied
|
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:18:18
|
|
|
|
|
|
|
|
|
LL | type W where Self: Eq;
|
|
|
|
| ^^^^^^^^ the trait `Eq` is not implemented for `X`
|
|
|
|
|
|
|
|
|
= help: see issue #48214
|
|
|
|
help: consider annotating `X` with `#[derive(Eq)]`
|
|
|
|
|
|
|
|
|
LL + #[derive(Eq)]
|
|
|
|
LL | struct X;
|
|
|
|
|
|
2024-03-07 22:09:00 +00:00
|
|
|
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
|
LL + #![feature(trivial_bounds)]
|
|
|
|
|
|
2024-02-14 21:04:51 +00:00
|
|
|
|
2024-02-15 17:12:05 +00:00
|
|
|
error[E0592]: duplicate definitions with name `W`
|
|
|
|
--> $DIR/impl-item-type-no-body-semantic-fail.rs:18:5
|
|
|
|
|
|
|
|
|
LL | type W: Ord where Self: Eq;
|
|
|
|
| ------ other definition for `W`
|
|
|
|
...
|
|
|
|
LL | type W where Self: Eq;
|
|
|
|
| ^^^^^^ duplicate definitions for `W`
|
|
|
|
|
2024-02-14 21:04:51 +00:00
|
|
|
error: aborting due to 13 previous errors
|
2019-12-01 09:25:45 +00:00
|
|
|
|
2024-02-14 21:04:51 +00:00
|
|
|
Some errors have detailed explanations: E0277, E0592, E0658.
|
|
|
|
For more information about an error, try `rustc --explain E0277`.
|