File tree 18 files changed +250
-195
lines changed
18 files changed +250
-195
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ extern crate macro_crate_test;
19
19
20
20
fn main ( ) {
21
21
macro_crate_test:: foo ( ) ;
22
- //~^ ERROR unresolved name
23
- //~^^ ERROR use of undeclared module `macro_crate_test`
24
- //~^^^ ERROR unresolved name `macro_crate_test::foo`.
22
+ //~^ ERROR failed to resolve. Use of undeclared module `macro_crate_test`
23
+ //~^^ ERROR unresolved name `macro_crate_test::foo`.
25
24
}
Original file line number Diff line number Diff line change 1
- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // error-pattern:failed to resolve import
12
11
use spam:: { ham, eggs} ;
12
+ //~^ ERROR unresolved import `spam::eggs`. There is no `eggs` in `spam`
13
13
14
14
mod spam {
15
15
pub fn ham ( ) { }
Original file line number Diff line number Diff line change 1
- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // error-pattern:failed to resolve import
12
11
use zed:: bar;
13
12
use zed:: baz;
13
+ //~^ ERROR unresolved import `zed::baz`. There is no `baz` in `zed`
14
14
15
15
16
16
mod zed {
Original file line number Diff line number Diff line change 1
- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- use baz:: zed:: bar; //~ ERROR unresolved import
12
- //~^ ERROR failed to resolve import
11
+ use baz:: zed:: bar;
12
+ //~^ ERROR unresolved import `baz::zed::bar`. Could not find `zed` in `baz`.
13
13
14
14
15
15
mod baz { }
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ use foo::bar;
16
16
17
17
mod test {
18
18
use bar:: foo;
19
- //~^ ERROR: unresolved import
20
- //~^^ ERROR: failed to resolve import
19
+ //~^ ERROR unresolved import `bar::foo`. Maybe a missing `extern crate bar`?
21
20
}
22
21
23
22
fn main ( ) { }
Original file line number Diff line number Diff line change 10
10
11
11
use a:: f;
12
12
use b:: f;
13
- //~^ ERROR: unresolved import
14
- //~^^ ERROR: failed to resolve import
13
+ //~^ ERROR: unresolved import `b::f`. There is no `f` in `b`
15
14
16
15
mod a { pub fn f ( ) { } }
17
16
mod b { }
Original file line number Diff line number Diff line change 1
- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
12
12
13
13
#![ feature( globs) ]
14
14
15
- use unresolved:: * ; //~ ERROR unresolved import. maybe a missing
16
- //~^ ERROR failed to resolve import
15
+ use unresolved:: * ; //~ ERROR unresolved import `unresolved::*`. Maybe a missing `extern crate unres
17
16
18
- fn main ( ) {
19
- }
17
+ fn main ( ) { }
Original file line number Diff line number Diff line change 1
- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- use x = m:: f; //~ ERROR failed to resolve import
12
- //~^ unresolved import: there is no `f` in `m`
11
+ use x = m:: f; //~ ERROR unresolved import `m::f`. There is no `f` in `m`
13
12
14
- mod m {
15
- }
13
+ mod m { }
16
14
17
- fn main ( ) {
18
- }
15
+ fn main ( ) { }
Original file line number Diff line number Diff line change 1
- // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- use x = m:: f; //~ ERROR failed to resolve import
12
- //~^ ERROR unresolved import: there is no `f` in `m`
11
+ use x = m:: f; //~ ERROR unresolved import `m::f`. There is no `f` in `m`
13
12
14
- mod m {
15
- }
13
+ mod m { }
16
14
17
- fn main ( ) {
18
- }
15
+ fn main ( ) { }
Original file line number Diff line number Diff line change @@ -25,9 +25,8 @@ test!(b,
25
25
#[ qux]
26
26
fn main ( ) {
27
27
a:: bar ( ) ;
28
- //~^ ERROR use of undeclared module `a`
29
- //~^^ ERROR unresolved name
30
- //~^^^ ERROR unresolved name `a::bar`
28
+ //~^ ERROR failed to resolve. Use of undeclared module `a`
29
+ //~^^ ERROR unresolved name `a::bar`
31
30
b:: bar ( ) ;
32
31
}
33
32
Original file line number Diff line number Diff line change 1
- // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
@@ -24,14 +24,13 @@ mod bar {
24
24
pub fn foo ( ) { }
25
25
26
26
fn test1 ( ) {
27
- use bar:: foo; //~ ERROR: unresolved import
28
- //~^ ERROR: failed to resolve
27
+ use bar:: foo;
28
+ //~^ ERROR unresolved import `bar::foo`. There is no `foo` in `bar`
29
29
}
30
30
31
31
fn test2 ( ) {
32
32
use bar:: glob:: foo;
33
- //~^ ERROR: there is no
34
- //~^^ ERROR: failed to resolve
33
+ //~^ ERROR unresolved import `bar::glob::foo`. There is no `foo` in `bar::glob`
35
34
}
36
35
37
36
#[ start] fn main ( _: int , _: * * u8 ) -> int { 3 }
Original file line number Diff line number Diff line change 1
- // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
@@ -25,8 +25,8 @@ mod bar {
25
25
pub fn foo ( ) { }
26
26
27
27
fn test1 ( ) {
28
- use bar:: gpriv; //~ ERROR: unresolved import
29
- //~^ ERROR: failed to resolve
28
+ use bar:: gpriv;
29
+ //~^ ERROR unresolved import `bar::gpriv`. There is no `gpriv` in `bar`
30
30
gpriv ( ) ;
31
31
}
32
32
Original file line number Diff line number Diff line change
1
+ // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2
+ // file at the top-level directory of this distribution and at
3
+ // http://rust-lang.org/COPYRIGHT.
4
+ //
5
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6
+ // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7
+ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8
+ // option. This file may not be copied, modified, or distributed
9
+ // except according to those terms.
10
+
11
+ mod a {
12
+ extern crate collections;
13
+ use collections:: HashMap ;
14
+ //~^ ERROR unresolved import `collections::HashMap`. Did you mean `self::collections`?
15
+ mod b {
16
+ use collections:: HashMap ;
17
+ //~^ ERROR unresolved import `collections::HashMap`. Did you mean `a::collections`?
18
+ mod c {
19
+ use collections:: HashMap ;
20
+ //~^ ERROR unresolved import `collections::HashMap`. Did you mean `a::collections`?
21
+ mod d {
22
+ use collections:: HashMap ;
23
+ //~^ ERROR unresolved import `collections::HashMap`. Did you mean `a::collections`?
24
+ }
25
+ }
26
+ }
27
+ }
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- use super :: f; //~ ERROR failed to resolve import
11
+ use super :: f; //~ ERROR unresolved import `super::f`
12
12
13
13
fn main ( ) {
14
14
}
Original file line number Diff line number Diff line change 1
- // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1
+ // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2
2
// file at the top-level directory of this distribution and at
3
3
// http://rust-lang.org/COPYRIGHT.
4
4
//
8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- use foo:: bar; //~ ERROR unresolved import. maybe a missing `extern crate foo`?
12
- //~^ ERROR failed to resolve import `foo::bar`
13
- use x = bar:: baz; //~ ERROR unresolved import: there is no `baz` in `bar`
14
- //~^ ERROR failed to resolve import `bar::baz`
11
+ use foo:: bar; //~ ERROR unresolved import `foo::bar`. Maybe a missing `extern crate foo`?
12
+
13
+ use x = bar:: baz; //~ ERROR unresolved import `bar::baz`. There is no `baz` in `bar`
15
14
16
15
mod bar {
17
16
struct bar ;
Original file line number Diff line number Diff line change 12
12
13
13
extern crate use_from_trait_xc;
14
14
15
- use use_from_trait_xc:: Trait :: foo; //~ ERROR cannot import from a trait or type implementation
16
- //~^ ERROR failed to resolve import
17
- use use_from_trait_xc:: Foo :: new; //~ ERROR cannot import from a trait or type implementation
18
- //~^ ERROR failed to resolve import
15
+ use use_from_trait_xc:: Trait :: foo;
16
+ //~^ ERROR unresolved import `use_from_trait_xc::Trait::foo`. Cannot import from a trait or type imp
19
17
20
- fn main ( ) {
21
- }
18
+ use use_from_trait_xc:: Foo :: new;
19
+ //~^ ERROR unresolved import `use_from_trait_xc::Foo::new`. Cannot import from a trait or type imple
20
+
21
+ fn main ( ) { }
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- use Trait :: foo; //~ ERROR cannot import from a trait or type implementation
12
- //~^ ERROR failed to resolve import
13
- use Foo :: new; //~ ERROR cannot import from a trait or type implementation
14
- //~^ ERROR failed to resolve import
11
+ use Trait :: foo;
12
+ //~^ ERROR unresolved import `Trait::foo`. Cannot import from a trait or type implementation
13
+ use Foo :: new;
14
+ //~^ ERROR unresolved import `Foo::new`. Cannot import from a trait or type implementation
15
15
16
16
pub trait Trait {
17
17
fn foo ( ) ;
You can’t perform that action at this time.
0 commit comments