]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/dead-code/associated-type.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / dead-code / associated-type.rs
1 // run-pass
2
3 #![deny(dead_code)]
4
5 trait Foo {
6     type Bar;
7 }
8
9 struct Used;
10
11 struct Ex;
12
13 impl Foo for Ex {
14     type Bar = Used;
15 }
16
17 pub fn main() {
18     let _x = Ex;
19 }