summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/two-phase-method-receivers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/borrowck/two-phase-method-receivers.rs')
-rw-r--r--src/test/ui/borrowck/two-phase-method-receivers.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/borrowck/two-phase-method-receivers.rs b/src/test/ui/borrowck/two-phase-method-receivers.rs
deleted file mode 100644
index 6b879af5a..000000000
--- a/src/test/ui/borrowck/two-phase-method-receivers.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// run-pass
-
-struct Foo<'a> {
- x: &'a i32
-}
-
-impl<'a> Foo<'a> {
- fn method(&mut self, _: &i32) {
- }
-}
-
-fn main() {
- let a = &mut Foo { x: &22 };
- Foo::method(a, a.x);
-}