about summary refs log tree commit diff
path: root/src/test/ui/autoref-autoderef/autoderef-method-twice-but-not-thrice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/autoref-autoderef/autoderef-method-twice-but-not-thrice.rs')
-rw-r--r--src/test/ui/autoref-autoderef/autoderef-method-twice-but-not-thrice.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/autoref-autoderef/autoderef-method-twice-but-not-thrice.rs b/src/test/ui/autoref-autoderef/autoderef-method-twice-but-not-thrice.rs
deleted file mode 100644
index 3657e61d425..00000000000
--- a/src/test/ui/autoref-autoderef/autoderef-method-twice-but-not-thrice.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// run-pass
-#![allow(non_camel_case_types)]
-
-trait double {
-    fn double(self: Box<Self>) -> usize;
-}
-
-impl double for Box<usize> {
-    fn double(self: Box<Box<usize>>) -> usize { **self * 2 }
-}
-
-pub fn main() {
-    let x: Box<Box<Box<Box<Box<_>>>>> = Box::new(Box::new(Box::new(Box::new(Box::new(3)))));
-    assert_eq!(x.double(), 6);
-}