about summary refs log tree commit diff
path: root/src/test/ui/feature-gate-box_patterns.rs
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2017-12-06 10:18:03 +0100
committerest31 <MTest31@outlook.com>2017-12-07 10:14:41 +0100
commit6dba3e68e670a3b1418b259ca5f3758444dd1a68 (patch)
treedeec386a3bbbbc37676603227787be64636c5b88 /src/test/ui/feature-gate-box_patterns.rs
parent38438c618ca0238442e1feb245e0a71174c3db43 (diff)
downloadrust-6dba3e68e670a3b1418b259ca5f3758444dd1a68.tar.gz
rust-6dba3e68e670a3b1418b259ca5f3758444dd1a68.zip
Migrate even more feature gate tests to ui
We also rename some of the files to conform to the
feature-gate-<feat_name>.rs pattern that is most common.
Diffstat (limited to 'src/test/ui/feature-gate-box_patterns.rs')
-rw-r--r--src/test/ui/feature-gate-box_patterns.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/feature-gate-box_patterns.rs b/src/test/ui/feature-gate-box_patterns.rs
new file mode 100644
index 00000000000..e64081823e7
--- /dev/null
+++ b/src/test/ui/feature-gate-box_patterns.rs
@@ -0,0 +1,14 @@
+// Copyright 2015 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.
+
+fn main() {
+    let box x = Box::new('c'); //~ ERROR box pattern syntax is experimental
+    println!("x: {}", x);
+}