]> git.lizzy.rs Git - rust.git/blob - src/test/ui/existential_types/private_unused.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / existential_types / private_unused.rs
1 // compile-pass
2
3 #[deny(warnings)]
4
5 enum Empty { }
6 trait Bar<T> {}
7 impl Bar<Empty> for () {}
8
9 fn boo() -> impl Bar<Empty> {}
10
11 fn main() {
12     boo();
13 }