]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/generic_duplicate_param_use6.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / generic_duplicate_param_use6.stderr
CommitLineData
416331ca 1error: concrete type differs from previous defining opaque type use
ee023bcb 2 --> $DIR/generic_duplicate_param_use6.rs:16:5
9fa01778 3 |
ee023bcb
FG
4LL | (u, t)
5 | ^^^^^^ expected `(T, T)`, got `(U, T)`
9fa01778
XL
6 |
7note: previous use here
ee023bcb 8 --> $DIR/generic_duplicate_param_use6.rs:12:5
9fa01778 9 |
ee023bcb
FG
10LL | (t, t)
11 | ^^^^^^
9fa01778 12
29967ef6 13error[E0277]: `T` doesn't implement `Debug`
94222f64 14 --> $DIR/generic_duplicate_param_use6.rs:8:18
29967ef6
XL
15 |
16LL | type Two<T, U> = impl Debug;
17 | ^^^^^^^^^^ `T` cannot be formatted using `{:?}` because it doesn't implement `Debug`
18 |
19 = note: required because of the requirements on the impl of `Debug` for `(T, T)`
20help: consider restricting type parameter `T`
21 |
cdc7bbd5 22LL | type Two<T: std::fmt::Debug, U> = impl Debug;
94222f64 23 | +++++++++++++++++
29967ef6
XL
24
25error: aborting due to 2 previous errors
9fa01778 26
29967ef6 27For more information about this error, try `rustc --explain E0277`.