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
This commit is contained in:
parent
269d38413c
commit
e063ddb12e
36 changed files with 18 additions and 18 deletions
|
|
@ -1,17 +0,0 @@
|
|||
// 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());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue