about summary refs log tree commit diff
path: root/src/test/ui/self/explicit-self-objects-uniq.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/self/explicit-self-objects-uniq.rs')
-rw-r--r--src/test/ui/self/explicit-self-objects-uniq.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/self/explicit-self-objects-uniq.rs b/src/test/ui/self/explicit-self-objects-uniq.rs
deleted file mode 100644
index 250ea12e57c..00000000000
--- a/src/test/ui/self/explicit-self-objects-uniq.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// run-pass
-
-trait Foo {
-    fn f(self: Box<Self>);
-}
-
-struct S {
-    x: isize
-}
-
-impl Foo for S {
-    fn f(self: Box<S>) {
-        assert_eq!(self.x, 3);
-    }
-}
-
-pub fn main() {
-    let x = Box::new(S { x: 3 });
-    let y = x as Box<dyn Foo>;
-    y.f();
-}