Skip to content

Commit 8205691

Browse files
committed
Fix fallout in tests.
1 parent 132bff9 commit 8205691

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/test/compile-fail/privacy-ns2.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ pub mod foo1 {
2525
}
2626

2727
fn test_single1() {
28-
use foo1::Bar; //~ ERROR function `Bar` is private
28+
use foo1::Bar;
2929

30-
Bar();
30+
Bar(); //~ ERROR unresolved name `Bar`
3131
}
3232

3333
fn test_list1() {
34-
use foo1::{Bar,Baz}; //~ ERROR `Bar` is private
34+
use foo1::{Bar,Baz};
3535

36-
Bar();
36+
Bar(); //~ ERROR unresolved name `Bar`
3737
}
3838

3939
// private type, public value
@@ -46,15 +46,15 @@ pub mod foo2 {
4646
}
4747

4848
fn test_single2() {
49-
use foo2::Bar; //~ ERROR trait `Bar` is private
49+
use foo2::Bar;
5050

51-
let _x : Box<Bar>;
51+
let _x : Box<Bar>; //~ ERROR type name `Bar` is undefined
5252
}
5353

5454
fn test_list2() {
55-
use foo2::{Bar,Baz}; //~ ERROR `Bar` is private
55+
use foo2::{Bar,Baz};
5656

57-
let _x: Box<Bar>;
57+
let _x: Box<Bar>; //~ ERROR type name `Bar` is undefined
5858
}
5959

6060
// neither public

0 commit comments

Comments
 (0)