diff options
Diffstat (limited to 'tests/ui/generics/issue-95208.rs')
-rw-r--r-- | tests/ui/generics/issue-95208.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/generics/issue-95208.rs b/tests/ui/generics/issue-95208.rs new file mode 100644 index 000000000..0e3083484 --- /dev/null +++ b/tests/ui/generics/issue-95208.rs @@ -0,0 +1,11 @@ +// 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() {} |