auto merge of #6485 : cmr/rust/local_rename_import_error, r=catamorphism

This commit is contained in:
bors 2013-05-15 05:43:58 -07:00
commit 62c7027a32
8 changed files with 36 additions and 13 deletions

View file

@ -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 {
}

View file

@ -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 {
}

View file

@ -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 {

View file

@ -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 = ();

View file

@ -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() {}

View file

@ -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() {
}

View file

@ -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;
}