mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
12 lines
242 B
Rust
12 lines
242 B
Rust
|
// run-rustfix
|
||
|
|
||
|
#[allow(unused)]
|
||
|
struct Struct<T>(T);
|
||
|
|
||
|
impl<T: Iterator> Struct<T> where <T as std:: iter::Iterator>::Item:: std::fmt::Display {
|
||
|
//~^ ERROR expected `:` followed by trait or lifetime
|
||
|
//~| HELP use single colon
|
||
|
}
|
||
|
|
||
|
fn main() {}
|