about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaan Sprenkels <dsprenkels@gmail.com>2016-06-13 22:59:36 +0200
committerDaan Sprenkels <dsprenkels@gmail.com>2016-06-13 23:24:29 +0200
commit297742e3b812d4a096fa42f7fac24322dd56a5d3 (patch)
tree58296f21715345362e7f23a49151b325166eef1d
parent5e3136def7b10515e06f87c4153d4660775753cd (diff)
downloadrust-297742e3b812d4a096fa42f7fac24322dd56a5d3.tar.gz
rust-297742e3b812d4a096fa42f7fac24322dd56a5d3.zip
Add regression test for #33293
-rw-r--r--src/test/compile-fail/issue-33293.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-33293.rs b/src/test/compile-fail/issue-33293.rs
new file mode 100644
index 00000000000..bed577b8b9d
--- /dev/null
+++ b/src/test/compile-fail/issue-33293.rs
@@ -0,0 +1,16 @@
+// Copyright 2016 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() {
+    match 0 {
+        aaa::bbb(_) => ()
+        //~^ ERROR failed to resolve. Use of undeclared type or module `aaa`
+    };
+}