summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-header-lifetime-elision/inherent-impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/impl-header-lifetime-elision/inherent-impl.rs')
-rw-r--r--src/test/ui/impl-header-lifetime-elision/inherent-impl.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/impl-header-lifetime-elision/inherent-impl.rs b/src/test/ui/impl-header-lifetime-elision/inherent-impl.rs
new file mode 100644
index 000000000..9d7b2f2d0
--- /dev/null
+++ b/src/test/ui/impl-header-lifetime-elision/inherent-impl.rs
@@ -0,0 +1,9 @@
+// build-pass (FIXME(62277): could be check-pass?)
+
+struct Foo<'a>(&'a u8);
+
+impl Foo<'_> {
+ fn x() {}
+}
+
+fn main() {}