summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/issue-95208.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generics/issue-95208.rs')
-rw-r--r--tests/ui/generics/issue-95208.rs11
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() {}