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