From 1fcde2bdbc2c725b66c42d4621b0aa9a4c90b459 Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Tue, 26 Jan 2016 09:12:23 +0000 Subject: [PATCH] Add test for #31212 --- src/test/compile-fail/issue-31212.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/test/compile-fail/issue-31212.rs diff --git a/src/test/compile-fail/issue-31212.rs b/src/test/compile-fail/issue-31212.rs new file mode 100644 index 00000000000..b9a4de701f5 --- /dev/null +++ b/src/test/compile-fail/issue-31212.rs @@ -0,0 +1,20 @@ +// 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// This checks that a path that cannot be resolved because of an indeterminate import +// does not trigger an ICE. + +mod foo { + pub use self::*; //~ ERROR unresolved +} + +fn main() { + foo::f(); //~ ERROR unresolved +} -- 2.44.0