about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-09-21 01:00:29 +0000
committerbors <bors@rust-lang.org>2014-09-21 01:00:29 +0000
commitd7e1bb5ff4622694d48905e944c1cf9bea7a5da7 (patch)
tree6b10e1f32458e58f31c294b6b5bd640505c1a219 /src/test
parent9c39b6c564745d4e316c16b6b8bf04675520253b (diff)
parent3514737b4cf1d91dc8c7b61c95f2f20d3b386d1c (diff)
downloadrust-d7e1bb5ff4622694d48905e944c1cf9bea7a5da7.tar.gz
rust-d7e1bb5ff4622694d48905e944c1cf9bea7a5da7.zip
auto merge of #17415 : jakub-/rust/issue-17383, r=huonw
Fixes #17383.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/issue-17383.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-17383.rs b/src/test/compile-fail/issue-17383.rs
new file mode 100644
index 00000000000..24007364550
--- /dev/null
+++ b/src/test/compile-fail/issue-17383.rs
@@ -0,0 +1,18 @@
+// Copyright 2014 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.
+
+enum X {
+    A =
+        b'a' //~ ERROR discriminator values can only be used with a c-like enum
+    ,
+    B(int)
+}
+
+fn main() {}