summaryrefslogtreecommitdiffstats
path: root/tests/ui/generics/issue-95208-ignore-qself.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generics/issue-95208-ignore-qself.fixed')
-rw-r--r--tests/ui/generics/issue-95208-ignore-qself.fixed11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/generics/issue-95208-ignore-qself.fixed b/tests/ui/generics/issue-95208-ignore-qself.fixed
new file mode 100644
index 000000000..608b4a20f
--- /dev/null
+++ b/tests/ui/generics/issue-95208-ignore-qself.fixed
@@ -0,0 +1,11 @@
+// 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() {}