2020-01-31 03:01:31 +00:00
|
|
|
error[E0658]: associated type bounds are unstable
|
|
|
|
--> $DIR/missing-assoc-fn.rs:9:22
|
|
|
|
|
|
|
|
|
LL | fn bat<T: TraitB<Item: Copy>>(_: T) -> Self;
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2020-02-07 12:07:02 +00:00
|
|
|
= note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information
|
2020-01-31 03:01:31 +00:00
|
|
|
= help: add `#![feature(associated_type_bounds)]` 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
|
2020-01-31 03:01:31 +00:00
|
|
|
|
|
|
|
error[E0046]: not all trait items implemented, missing: `foo`, `bar`, `baz`, `bat`
|
|
|
|
--> $DIR/missing-assoc-fn.rs:14:1
|
|
|
|
|
|
|
|
|
LL | fn foo<T: TraitB<Item = A>>(_: T) -> Self;
|
|
|
|
| ------------------------------------------ `foo` from trait
|
|
|
|
LL | fn bar<T>(_: T) -> Self;
|
|
|
|
| ------------------------ `bar` from trait
|
|
|
|
LL | fn baz<T>(_: T) -> Self where T: TraitB, <T as TraitB>::Item: Copy;
|
|
|
|
| ------------------------------------------------------------------- `baz` from trait
|
|
|
|
LL | fn bat<T: TraitB<Item: Copy>>(_: T) -> Self;
|
|
|
|
| -------------------------------------------- `bat` from trait
|
|
|
|
...
|
|
|
|
LL | impl TraitA<()> for S {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ missing `foo`, `bar`, `baz`, `bat` in implementation
|
|
|
|
|
|
|
|
error[E0046]: not all trait items implemented, missing: `from_iter`
|
|
|
|
--> $DIR/missing-assoc-fn.rs:19:1
|
|
|
|
|
|
|
|
|
LL | impl FromIterator<()> for X {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `from_iter` in implementation
|
|
|
|
|
|
2023-05-31 02:10:16 +00:00
|
|
|
= help: implement the missing item: `fn from_iter<T: IntoIterator<Item = ()>>(_: T) -> Self { todo!() }`
|
2020-01-31 03:01:31 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
Some errors have detailed explanations: E0046, E0658.
|
|
|
|
For more information about an error, try `rustc --explain E0046`.
|