auto merge of #6485 : cmr/rust/local_rename_import_error, r=catamorphism
This commit is contained in:
commit
62c7027a32
8 changed files with 36 additions and 13 deletions
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
use x = m::f; //~ ERROR failed to resolve import
|
||||
//~^ unresolved import: there is no `f` in `m`
|
||||
|
||||
mod m {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
use x = m::f; //~ ERROR failed to resolve import
|
||||
//~^ ERROR unresolved import: there is no `f` in `m`
|
||||
|
||||
mod m {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
use zoo::{duck, goose}; //~ ERROR failed to resolve import
|
||||
//~^ ERROR unresolved import: found `goose` in `zoo` but it is private
|
||||
|
||||
mod zoo {
|
||||
pub enum bird {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
use zoo::fly; //~ ERROR failed to resolve import
|
||||
//~^ ERROR unresolved import: found `fly` in `zoo` but it is private
|
||||
|
||||
mod zoo {
|
||||
priv type fly = ();
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
use zoo::fly; //~ ERROR failed to resolve import
|
||||
//~^ ERROR unresolved import: found `fly` in `zoo` but it is private
|
||||
|
||||
mod zoo {
|
||||
priv fn fly() {}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
use super::f; //~ ERROR unresolved name
|
||||
//~^ ERROR failed to resolve import
|
||||
use super::f; //~ ERROR failed to resolve import
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,5 +8,11 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use foo::bar; //~ ERROR unresolved import. maybe a missing
|
||||
//~^ ERROR failed to resolve import
|
||||
use foo::bar; //~ ERROR unresolved import. maybe a missing `extern mod foo`?
|
||||
//~^ ERROR failed to resolve import `foo::bar`
|
||||
use x = bar::baz; //~ ERROR unresolved import: there is no `baz` in `bar`
|
||||
//~^ ERROR failed to resolve import `bar::baz`
|
||||
|
||||
mod bar {
|
||||
struct bar;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue