mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-13 00:17:13 +00:00
15 lines
162 B
Rust
15 lines
162 B
Rust
|
fn repro() {
|
||
|
trait Foo {
|
||
|
type Bar;
|
||
|
}
|
||
|
|
||
|
#[allow(dead_code)]
|
||
|
struct Baz<T: Foo> {
|
||
|
field: T::Bar,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
repro();
|
||
|
}
|