Skip to content
Permalink
Browse files

Add a regression test for #47131

  • Loading branch information...
varkor committed Mar 28, 2019
1 parent b3011dd commit 40db5756b435d2e67a834475833f4752486672e0
Showing with 17 additions and 0 deletions.
  1. +17 −0 src/test/ui/dead-code-impl.rs
@@ -0,0 +1,17 @@
// 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());
}

0 comments on commit 40db575

Please sign in to comment.
You can’t perform that action at this time.