]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/generic_not_used.rs
Auto merge of #106916 - lukas-code:overlapping-substs, r=estebank
[rust.git] / tests / ui / type-alias-impl-trait / generic_not_used.rs
1 #![feature(type_alias_impl_trait)]
2
3 fn main() {}
4
5 type WrongGeneric<T: 'static> = impl 'static;
6 //~^ ERROR: at least one trait must be specified
7
8 fn wrong_generic<U: 'static, V: 'static>(_: U, v: V) -> WrongGeneric<U> {
9     v
10     //~^ ERROR type parameter `V` is part of concrete type but not used in parameter list
11 }