mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
12 lines
201 B
Rust
12 lines
201 B
Rust
//@ 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() {}
|