summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-header-lifetime-elision/path-elided.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/impl-header-lifetime-elision/path-elided.rs')
-rw-r--r--src/test/ui/impl-header-lifetime-elision/path-elided.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/impl-header-lifetime-elision/path-elided.rs b/src/test/ui/impl-header-lifetime-elision/path-elided.rs
new file mode 100644
index 000000000..40a52efc7
--- /dev/null
+++ b/src/test/ui/impl-header-lifetime-elision/path-elided.rs
@@ -0,0 +1,11 @@
+#![allow(warnings)]
+
+trait MyTrait { }
+
+struct Foo<'a> { x: &'a u32 }
+
+impl MyTrait for Foo {
+ //~^ ERROR implicit elided lifetime not allowed here
+}
+
+fn main() {}