]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/traits/trait-matching-lifetimes.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / trait-matching-lifetimes.rs
diff --git a/src/test/ui/traits/trait-matching-lifetimes.rs b/src/test/ui/traits/trait-matching-lifetimes.rs
deleted file mode 100644 (file)
index 1430dc6..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// Tests that the trait matching code takes lifetime parameters into account.
-// (Issue #15517.)
-
-struct Foo<'a,'b> {
-    x: &'a isize,
-    y: &'b isize,
-}
-
-trait Tr : Sized {
-    fn foo(x: Self) {}
-}
-
-impl<'a,'b> Tr for Foo<'a,'b> {
-    fn foo(x: Foo<'b,'a>) {
-        //~^ ERROR method not compatible with trait
-        //~^^ ERROR method not compatible with trait
-    }
-}
-
-fn main(){}