rust/tests/ui/generics/issue-95208-ignore-qself.rs
2024-02-16 20:02:50 +00:00

12 lines
243 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() {}