From: Jeffrey Seyfried Date: Tue, 26 Jan 2016 09:12:23 +0000 (+0000) Subject: Add test for #31212 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=1fcde2bdbc2c725b66c42d4621b0aa9a4c90b459;p=rust.git Add test for #31212 --- 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 +}