]> git.lizzy.rs Git - rust.git/blob - src/test/ui/existential_types/generic_duplicate_param_use.rs
380fbdeb8c27ca8d18a6eb3204783a1e54188d6a
[rust.git] / src / test / ui / existential_types / generic_duplicate_param_use.rs
1 #![feature(existential_type)]
2
3 fn main() {}
4
5 existential type Two<T, U>: 'static; //~ ERROR type parameter `U` is unused
6
7 fn one<T: 'static>(t: T) -> Two<T, T> {
8     t
9 }