@@ -2,7 +2,7 @@ error: incorrect visibility restriction
2
2
--> $DIR/pub-restricted.rs:15:6
3
3
|
4
4
15 | pub (a) fn afn() {}
5
- | ^ make this visible only to module `a` with `in`: `in a`
5
+ | ^ help: make this visible only to module `a` with `in`: `in a`
6
6
|
7
7
= help: some possible visibility restrictions are:
8
8
`pub(crate)`: visible only on the current crate
@@ -13,7 +13,7 @@ error: incorrect visibility restriction
13
13
--> $DIR/pub-restricted.rs:16:6
14
14
|
15
15
16 | pub (b) fn bfn() {}
16
- | ^ make this visible only to module `b` with `in`: `in b`
16
+ | ^ help: make this visible only to module `b` with `in`: `in b`
17
17
|
18
18
= help: some possible visibility restrictions are:
19
19
`pub(crate)`: visible only on the current crate
@@ -24,7 +24,7 @@ error: incorrect visibility restriction
24
24
--> $DIR/pub-restricted.rs:32:14
25
25
|
26
26
32 | pub (a) invalid: usize,
27
- | ^ make this visible only to module `a` with `in`: `in a`
27
+ | ^ help: make this visible only to module `a` with `in`: `in a`
28
28
|
29
29
= help: some possible visibility restrictions are:
30
30
`pub(crate)`: visible only on the current crate
@@ -35,7 +35,7 @@ error: incorrect visibility restriction
35
35
--> $DIR/pub-restricted.rs:41:6
36
36
|
37
37
41 | pub (xyz) fn xyz() {}
38
- | ^^^ make this visible only to module `xyz` with `in`: `in xyz`
38
+ | ^^^ help: make this visible only to module `xyz` with `in`: `in xyz`
39
39
|
40
40
= help: some possible visibility restrictions are:
41
41
`pub(crate)`: visible only on the current crate
0 commit comments