]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/lint-dead-code-impl-trait.rs
New upstream version 1.39.0+dfsg1
[rustc.git] / src / test / ui / lint / lint-dead-code-impl-trait.rs
CommitLineData
532ac7d7
XL
1#![deny(dead_code)]
2
3trait Trait {
4 type Type;
5}
6
7impl Trait for () {
8 type Type = ();
9}
10
11type Used = ();
12type Unused = (); //~ ERROR type alias is never used
13
14fn foo() -> impl Trait<Type = Used> {}
15
16fn main() {
17 foo();
18}