summaryrefslogtreecommitdiffstats
path: root/tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand-rust2015.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand-rust2015.fixed')
-rw-r--r--tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand-rust2015.fixed17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand-rust2015.fixed b/tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand-rust2015.fixed
new file mode 100644
index 000000000..5be6ff8e7
--- /dev/null
+++ b/tests/ui/underscore-lifetime/where-clause-inherent-impl-ampersand-rust2015.fixed
@@ -0,0 +1,17 @@
+// run-rustfix
+
+trait WithType<T> {}
+trait WithRegion<'a> { }
+
+#[allow(dead_code)]
+struct Foo<T> {
+ t: T
+}
+
+impl<T> Foo<T>
+where
+ T: for<'a> WithType<&'a u32>
+//~^ ERROR `&` without an explicit lifetime name cannot be used here
+{ }
+
+fn main() {}