Skip to content

Commit 6886315

Browse files
committed
Fix resolution tests
1 parent 8a69dba commit 6886315

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

src/test/compile-fail/issue-2123.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
use x = m::f; //~ ERROR failed to resolve import
12+
//~^ unresolved import: there is no `f` in `m`
1213

1314
mod m {
1415
}

src/test/compile-fail/issue-2937.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
use x = m::f; //~ ERROR failed to resolve import
12+
//~^ ERROR unresolved import: there is no `f` in `m`
1213

1314
mod m {
1415
}

src/test/compile-fail/issue-3993-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
use zoo::{duck, goose}; //~ ERROR failed to resolve import
12+
//~^ ERROR unresolved import: found `goose` in `zoo` but it is private
1213

1314
mod zoo {
1415
pub enum bird {

src/test/compile-fail/issue-3993-3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
use zoo::fly; //~ ERROR failed to resolve import
12+
//~^ ERROR unresolved import: found `fly` in `zoo` but it is private
1213

1314
mod zoo {
1415
priv type fly = ();

src/test/compile-fail/issue-3993.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
use zoo::fly; //~ ERROR failed to resolve import
12+
//~^ ERROR unresolved import: found `fly` in `zoo` but it is private
1213

1314
mod zoo {
1415
priv fn fly() {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use super::f; //~ ERROR unresolved name
2-
//~^ ERROR failed to resolve import
1+
use super::f; //~ ERROR failed to resolve import
32

43
fn main() {
54
}

0 commit comments

Comments
 (0)