fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0403]: the name `T` is already used for a generic parameter in this item's generic parameters 2 --> $DIR/issue-86756.rs:1:14 3 | 4LL | trait Foo<T, T = T> {} 5 | - ^ already used 6 | | 7 | first use of `T` 8 9error[E0412]: cannot find type `dyn` in this scope 10 --> $DIR/issue-86756.rs:5:10 11 | 12LL | eq::<dyn, Foo> 13 | ^^^ not found in this scope 14 15warning: trait objects without an explicit `dyn` are deprecated 16 --> $DIR/issue-86756.rs:5:15 17 | 18LL | eq::<dyn, Foo> 19 | ^^^ 20 | 21 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! 22 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> 23 = note: `#[warn(bare_trait_objects)]` on by default 24help: use `dyn` 25 | 26LL | eq::<dyn, dyn Foo> 27 | +++ 28 29error[E0107]: missing generics for trait `Foo` 30 --> $DIR/issue-86756.rs:5:15 31 | 32LL | eq::<dyn, Foo> 33 | ^^^ expected at least 1 generic argument 34 | 35note: trait defined here, with at least 1 generic parameter: `T` 36 --> $DIR/issue-86756.rs:1:7 37 | 38LL | trait Foo<T, T = T> {} 39 | ^^^ - 40help: add missing generic argument 41 | 42LL | eq::<dyn, Foo<T>> 43 | +++ 44 45error: aborting due to 3 previous errors; 1 warning emitted 46 47Some errors have detailed explanations: E0107, E0403, E0412. 48For more information about an error, try `rustc --explain E0107`.