]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/generic_not_used.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / generic_not_used.stderr
CommitLineData
48663c56 1error: at least one trait must be specified
60c5eb7d 2 --> $DIR/generic_not_used.rs:5:33
48663c56 3 |
416331ca 4LL | type WrongGeneric<T: 'static> = impl 'static;
60c5eb7d 5 | ^^^^^^^^^^^^
48663c56 6
416331ca 7error: type parameter `V` is part of concrete type but not used in parameter list for the `impl Trait` type alias
48663c56 8 --> $DIR/generic_not_used.rs:8:73
8faf50e0
XL
9 |
10LL | fn wrong_generic<U: 'static, V: 'static>(_: U, v: V) -> WrongGeneric<U> {
11 | _________________________________________________________________________^
532ac7d7 12LL | |
8faf50e0
XL
13LL | | v
14LL | | }
15 | |_^
16
48663c56 17error: aborting due to 2 previous errors
8faf50e0 18