about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-04-09 01:27:46 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-04-09 02:12:18 +0000
commit44ddaa2cd53782a3e654395c136a614e0601280f (patch)
tree95b5e5f0f73da01c4b7570054c56e1b05b52d47c
parent178c39632616fbf07038e4c1276b6fa127c36e51 (diff)
downloadrust-44ddaa2cd53782a3e654395c136a614e0601280f.tar.gz
rust-44ddaa2cd53782a3e654395c136a614e0601280f.zip
Add regression test
-rw-r--r--src/test/compile-fail/issue-32833.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-32833.rs b/src/test/compile-fail/issue-32833.rs
new file mode 100644
index 00000000000..22261d98a12
--- /dev/null
+++ b/src/test/compile-fail/issue-32833.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.
+
+use bar::Foo; //~ ERROR There is no `Foo` in `bar` [E0432]
+mod bar {
+    use Foo; //~ ERROR There is no `Foo` in the crate root [E0432]
+}
+
+fn main() {}