summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/private_unused.rs
blob: 92268f1861d63535de87ea1563f9dfd4b41256e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// build-pass (FIXME(62277): could be check-pass?)

#[deny(warnings)]

enum Empty { }
trait Bar<T> {}
impl Bar<Empty> for () {}

fn boo() -> impl Bar<Empty> {}

fn main() {
    boo();
}