summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/generic_not_used.rs
blob: c70f473cff57890ebdb6ba49478610756d9e6902 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(type_alias_impl_trait)]

fn main() {}

type WrongGeneric<T: 'static> = impl 'static;
//~^ ERROR: at least one trait must be specified

fn wrong_generic<U: 'static, V: 'static>(_: U, v: V) -> WrongGeneric<U> {
    v
    //~^ ERROR type parameter `V` is part of concrete type but not used in parameter list
}