about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-01-13 14:05:51 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2018-01-15 10:28:00 +0100
commitc8a110ed6329022850fd9d473ec987ba1459a64f (patch)
treef69bf26185b852a219a462bf4b8c6c4f3ff520b0 /src/test/compile-fail
parent3f92e8d89861f0f5408ad9381a7467ec6e7d76bc (diff)
Add error code for unstable feature errors
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/E0658.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/compile-fail/E0658.rs b/src/test/compile-fail/E0658.rs
new file mode 100644
index 00000000000..d30068eb1fe
--- /dev/null
+++ b/src/test/compile-fail/E0658.rs
@@ -0,0 +1,13 @@
+// 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.
+
+fn main() {
+    let _ = ::std::u128::MAX; //~ ERROR E0658
+}