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
18 lines
231 B
Rust
18 lines
231 B
Rust
#![deny(dead_code)]
|
|
|
|
trait Trait {
|
|
type Type;
|
|
}
|
|
|
|
impl Trait for () {
|
|
type Type = ();
|
|
}
|
|
|
|
type Used = ();
|
|
type Unused = (); //~ ERROR type alias is never used
|
|
|
|
fn foo() -> impl Trait<Type = Used> {}
|
|
|
|
fn main() {
|
|
foo();
|
|
}
|