diff options
Diffstat (limited to 'src/test/ui/nll/issue-48070.rs')
-rw-r--r-- | src/test/ui/nll/issue-48070.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/test/ui/nll/issue-48070.rs b/src/test/ui/nll/issue-48070.rs deleted file mode 100644 index a9fe3521d..000000000 --- a/src/test/ui/nll/issue-48070.rs +++ /dev/null @@ -1,22 +0,0 @@ -// run-pass - -struct Foo { - x: u32 -} - -impl Foo { - fn twiddle(&mut self) -> &mut Self { self } - fn twaddle(&mut self) -> &mut Self { self } - fn emit(&mut self) { - self.x += 1; - } -} - -fn main() { - let mut foo = Foo { x: 0 }; - match 22 { - 22 => &mut foo, - 44 => foo.twiddle(), - _ => foo.twaddle(), - }.emit(); -} |