]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/dead-code/associated-type.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / lint / dead-code / associated-type.rs
CommitLineData
416331ca
XL
1// run-pass
2
54a0048b 3#![deny(dead_code)]
1a4d82fc 4
54a0048b
SL
5trait Foo {
6 type Bar;
7}
8
9struct Used;
10
11struct Ex;
12
13impl Foo for Ex {
14 type Bar = Used;
15}
223e47cc
LB
16
17pub fn main() {
54a0048b 18 let _x = Ex;
223e47cc 19}