about summary refs log tree commit diff
path: root/src/test/run-pass
diff options
context:
space:
mode:
authorbobtwinkles <srkoser+github@gmail.com>2018-03-13 14:52:11 -0400
committerbobtwinkles <srkoser+github@gmail.com>2018-03-13 14:52:11 -0400
commit52bb99dcc7c918cc9568a3bd26801da07c1ce103 (patch)
tree6837544a4e41ed7c8a8a6d95b5cf64e282d7c149 /src/test/run-pass
parent21a9770d38483eb95d5045b50547058bc7ff7e65 (diff)
downloadrust-52bb99dcc7c918cc9568a3bd26801da07c1ce103.tar.gz
rust-52bb99dcc7c918cc9568a3bd26801da07c1ce103.zip
Move 48070 test to ui
Diffstat (limited to 'src/test/run-pass')
-rw-r--r--src/test/run-pass/issue-48070.rs34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/test/run-pass/issue-48070.rs b/src/test/run-pass/issue-48070.rs
deleted file mode 100644
index c2253aa8b4c..00000000000
--- a/src/test/run-pass/issue-48070.rs
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// revisions: lxl nll
-
-#![cfg_attr(nll, feature(nll))]
-
-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();
-}