]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/not_a_defining_use.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / not_a_defining_use.stderr
CommitLineData
1b1a35ee
XL
1error: non-defining opaque type use in defining scope
2 --> $DIR/not_a_defining_use.rs:9:27
9fa01778 3 |
1b1a35ee
XL
4LL | fn two<T: Debug>(t: T) -> Two<T, u32> {
5 | ^^^^^^^^^^^
9fa01778 6 |
1b1a35ee
XL
7note: used non-generic type `u32` for generic parameter
8 --> $DIR/not_a_defining_use.rs:7:13
9fa01778 9 |
1b1a35ee
XL
10LL | type Two<T, U> = impl Debug;
11 | ^
9fa01778 12
ba9703b0 13error: aborting due to previous error
9fa01778 14