rust/tests/ui/generics/issue-95208.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
201 B
Rust
Raw Permalink Normal View History

//@ run-rustfix
#[allow(unused)]
struct Struct<T>(T);
impl<T> Struct<T> where T:: std::fmt::Display {
//~^ ERROR expected `:` followed by trait or lifetime
//~| HELP use single colon
}
fn main() {}