]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/not_a_defining_use.stderr
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / not_a_defining_use.stderr
1 error: concrete type differs from previous defining opaque type use
2   --> $DIR/not_a_defining_use.rs:25:5
3    |
4 LL |     (t, <U as Bar>::FOO)
5    |     ^^^^^^^^^^^^^^^^^^^^ expected `(T, i8)`, got `(T, <U as Bar>::Blub)`
6    |
7 note: previous use here
8   --> $DIR/not_a_defining_use.rs:11:5
9    |
10 LL |     (t, 5i8)
11    |     ^^^^^^^^
12
13 error[E0277]: `T` doesn't implement `Debug`
14   --> $DIR/not_a_defining_use.rs:7:18
15    |
16 LL | 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, i8)`
20 help: consider restricting type parameter `T`
21    |
22 LL | type Two<T: std::fmt::Debug, U> = impl Debug;
23    |           +++++++++++++++++
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0277`.