File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ pub mod foo1 {
25
25
}
26
26
27
27
fn test_single1 ( ) {
28
- use foo1:: Bar ; //~ ERROR function `Bar` is private
28
+ use foo1:: Bar ;
29
29
30
- Bar ( ) ;
30
+ Bar ( ) ; //~ ERROR unresolved name `Bar`
31
31
}
32
32
33
33
fn test_list1 ( ) {
34
- use foo1:: { Bar , Baz } ; //~ ERROR `Bar` is private
34
+ use foo1:: { Bar , Baz } ;
35
35
36
- Bar ( ) ;
36
+ Bar ( ) ; //~ ERROR unresolved name `Bar`
37
37
}
38
38
39
39
// private type, public value
@@ -46,15 +46,15 @@ pub mod foo2 {
46
46
}
47
47
48
48
fn test_single2 ( ) {
49
- use foo2:: Bar ; //~ ERROR trait `Bar` is private
49
+ use foo2:: Bar ;
50
50
51
- let _x : Box < Bar > ;
51
+ let _x : Box < Bar > ; //~ ERROR type name `Bar` is undefined
52
52
}
53
53
54
54
fn test_list2 ( ) {
55
- use foo2:: { Bar , Baz } ; //~ ERROR `Bar` is private
55
+ use foo2:: { Bar , Baz } ;
56
56
57
- let _x: Box < Bar > ;
57
+ let _x: Box < Bar > ; //~ ERROR type name `Bar` is undefined
58
58
}
59
59
60
60
// neither public
You can’t perform that action at this time.
0 commit comments