summaryrefslogtreecommitdiffstats
path: root/src/test/ui/self/by-value-self-in-mut-slot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/self/by-value-self-in-mut-slot.rs')
-rw-r--r--src/test/ui/self/by-value-self-in-mut-slot.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/test/ui/self/by-value-self-in-mut-slot.rs b/src/test/ui/self/by-value-self-in-mut-slot.rs
deleted file mode 100644
index 267afd1dc..000000000
--- a/src/test/ui/self/by-value-self-in-mut-slot.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-// run-pass
-
-struct X {
- a: isize
-}
-
-trait Changer {
- fn change(self) -> Self;
-}
-
-impl Changer for X {
- fn change(mut self) -> X {
- self.a = 55;
- self
- }
-}
-
-pub fn main() {
- let x = X { a: 32 };
- let new_x = x.change();
- assert_eq!(new_x.a, 55);
-}