summaryrefslogtreecommitdiffstats
path: root/src/test/ui/autoref-autoderef/auto-ref-bounded-ty-param.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/autoref-autoderef/auto-ref-bounded-ty-param.rs')
-rw-r--r--src/test/ui/autoref-autoderef/auto-ref-bounded-ty-param.rs29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/test/ui/autoref-autoderef/auto-ref-bounded-ty-param.rs b/src/test/ui/autoref-autoderef/auto-ref-bounded-ty-param.rs
deleted file mode 100644
index 2482e1878..000000000
--- a/src/test/ui/autoref-autoderef/auto-ref-bounded-ty-param.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-// run-pass
-trait Foo {
- fn f(&self);
-}
-
-struct Bar {
- x: isize
-}
-
-trait Baz {
- fn g(&self);
-}
-
-impl<T:Baz> Foo for T {
- fn f(&self) {
- self.g();
- }
-}
-
-impl Baz for Bar {
- fn g(&self) {
- println!("{}", self.x);
- }
-}
-
-pub fn main() {
- let y = Bar { x: 42 };
- y.f();
-}