summaryrefslogtreecommitdiffstats
path: root/src/test/ui/self/move-self.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/self/move-self.rs')
-rw-r--r--src/test/ui/self/move-self.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/ui/self/move-self.rs b/src/test/ui/self/move-self.rs
deleted file mode 100644
index 66032780b..000000000
--- a/src/test/ui/self/move-self.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// run-pass
-struct S {
- x: String
-}
-
-impl S {
- pub fn foo(self) {
- self.bar();
- }
-
- pub fn bar(self) {
- println!("{}", self.x);
- }
-}
-
-pub fn main() {
- let x = S { x: "Hello!".to_string() };
- x.foo();
-}