fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
798 B18 linesraw
1error[E0038]: the trait `std::cmp::Eq` cannot be made into an object
2  --> $DIR/trait-alias-object-fail.rs:7:13
3   |
4LL |     let _: &dyn EqAlias = &123;
5   |             ^^^^^^^^^^^ the trait `std::cmp::Eq` cannot be made into an object
6   |
7   = note: the trait cannot use `Self` as a type parameter in the supertraits or where-clauses
8
9error[E0191]: the value of the associated type `Item` (from the trait `std::iter::Iterator`) must be specified
10  --> $DIR/trait-alias-object-fail.rs:9:13
11   |
12LL |     let _: &dyn IteratorAlias = &vec![123].into_iter();
13   |             ^^^^^^^^^^^^^^^^^ associated type `Item` must be specified
14
15error: aborting due to 2 previous errors
16
17Some errors have detailed explanations: E0038, E0191.
18For more information about an error, try `rustc --explain E0038`.