]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/generic_not_used.rs
Loop over all opaque types instead of looking at just the first one with the same...
[rust.git] / src / test / ui / type-alias-impl-trait / generic_not_used.rs
1 // revisions: min_tait full_tait
2 #![feature(min_type_alias_impl_trait)]
3 #![cfg_attr(full_tait, feature(type_alias_impl_trait))]
4 //[full_tait]~^ WARN incomplete
5
6 fn main() {}
7
8 type WrongGeneric<T: 'static> = impl 'static;
9 //~^ ERROR: at least one trait must be specified
10
11 fn wrong_generic<U: 'static, V: 'static>(_: U, v: V) -> WrongGeneric<U> {
12 //~^ ERROR type parameter `V` is part of concrete type but not used in parameter list
13     v
14 }