summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/user-annotations/wf-self-type.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/nll/user-annotations/wf-self-type.rs')
-rw-r--r--src/test/ui/nll/user-annotations/wf-self-type.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/nll/user-annotations/wf-self-type.rs b/src/test/ui/nll/user-annotations/wf-self-type.rs
deleted file mode 100644
index 539226aab..000000000
--- a/src/test/ui/nll/user-annotations/wf-self-type.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-struct Foo<'a, 'b: 'a>(&'a &'b ());
-
-impl<'a, 'b> Foo<'a, 'b> {
- fn xmute(a: &'b ()) -> &'a () {
- unreachable!()
- }
-}
-
-pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
- Foo::xmute(u) //~ ERROR lifetime may not live long enough
-}
-
-fn main() {}