fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0658]: associated type bounds are unstable 2 --> $DIR/missing-assoc-fn.rs:9:22 3 | 4LL | fn bat<T: TraitB<Item: Copy>>(_: T) -> Self; 5 | ^^^^^^^^^^ 6 | 7 = note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information 8 = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable 9 10error[E0046]: not all trait items implemented, missing: `foo`, `bar`, `baz`, `bat` 11 --> $DIR/missing-assoc-fn.rs:14:1 12 | 13LL | fn foo<T: TraitB<Item = A>>(_: T) -> Self; 14 | ------------------------------------------ `foo` from trait 15LL | fn bar<T>(_: T) -> Self; 16 | ------------------------ `bar` from trait 17LL | fn baz<T>(_: T) -> Self where T: TraitB, <T as TraitB>::Item: Copy; 18 | ------------------------------------------------------------------- `baz` from trait 19LL | fn bat<T: TraitB<Item: Copy>>(_: T) -> Self; 20 | -------------------------------------------- `bat` from trait 21... 22LL | impl TraitA<()> for S { 23 | ^^^^^^^^^^^^^^^^^^^^^ missing `foo`, `bar`, `baz`, `bat` in implementation 24 25error[E0046]: not all trait items implemented, missing: `from_iter` 26 --> $DIR/missing-assoc-fn.rs:19:1 27 | 28LL | impl FromIterator<()> for X { 29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `from_iter` in implementation 30 | 31 = help: implement the missing item: `fn from_iter<T>(_: T) -> Self where T: std::iter::IntoIterator, std::iter::IntoIterator::Item = A { todo!() }` 32 33error: aborting due to 3 previous errors 34 35Some errors have detailed explanations: E0046, E0658. 36For more information about an error, try `rustc --explain E0046`.