rust/src/test/ui/lint/dead-code/with-impl.rs
Pi Lanningham e063ddb12e Move dead_code related tests to test/ui/dead-code
This helps organize the tests better.  I also renamed several of the tests to remove redundant dead-code in the path, and better match what they're testing
2019-10-26 21:42:52 -04:00

17 lines
203 B
Rust

// run-pass
#![deny(dead_code)]
pub struct GenericFoo<T>(T);
type Foo = GenericFoo<u32>;
impl Foo {
fn bar(self) -> u8 {
0
}
}
fn main() {
println!("{}", GenericFoo(0).bar());
}