]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-2937.rs
Auto merge of #35856 - phimuemue:master, r=brson
[rust.git] / src / test / compile-fail / issue-2937.rs
index b225c5496e24978c56511f048dc7ce3c972679d5..0d684ec5ae19b4593f2a5b379857e62a989a09e1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -8,11 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use x = m::f; //~ ERROR failed to resolve import
-              //~^ ERROR unresolved import: there is no `f` in `m`
+use m::f as x; //~ ERROR unresolved import `m::f` [E0432]
+               //~^ no `f` in `m`
 
-mod m {
-}
+mod m {}
 
-fn main() {
-}
+fn main() {}