summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/dead-code/associated-type.rs
blob: 1cf66e75a95a5a386c78278dcec8822d6e05a5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// run-pass

#![deny(dead_code)]

trait Foo {
    type Bar;
}

struct Used;

struct Ex;

impl Foo for Ex {
    type Bar = Used;
}

pub fn main() {
    let _x = Ex;
}