]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/generic_duplicate_param_use3.stderr
711de855f0d10978edf72e5311010b57b21d8bb2
[rust.git] / src / test / ui / type-alias-impl-trait / generic_duplicate_param_use3.stderr
1 error: non-defining opaque type use in defining scope
2   --> $DIR/generic_duplicate_param_use3.rs:10:27
3    |
4 LL | fn one<T: Debug>(t: T) -> Two<T, T> {
5    |                           ^^^^^^^^^
6    |
7 note: type used multiple times
8   --> $DIR/generic_duplicate_param_use3.rs:8:10
9    |
10 LL | type Two<T, U> = impl Debug;
11    |          ^  ^
12
13 error: aborting due to previous error
14