]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/dead-code/type-alias.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / lint / dead-code / type-alias.rs
1 #![deny(dead_code)]
2
3 type Used = u8;
4 type Unused = u8; //~ ERROR type alias `Unused` is never used
5
6 fn id(x: Used) -> Used { x }
7
8 fn main() {
9     id(0);
10 }