@@ -2,7 +2,7 @@ error: incorrect visibility restriction
22 --> $DIR/pub-restricted.rs:15:6
33 |
4415 | 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`
66 |
77 = help: some possible visibility restrictions are:
88 `pub(crate)`: visible only on the current crate
@@ -13,7 +13,7 @@ error: incorrect visibility restriction
1313 --> $DIR/pub-restricted.rs:16:6
1414 |
151516 | 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`
1717 |
1818 = help: some possible visibility restrictions are:
1919 `pub(crate)`: visible only on the current crate
@@ -24,7 +24,7 @@ error: incorrect visibility restriction
2424 --> $DIR/pub-restricted.rs:32:14
2525 |
262632 | 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`
2828 |
2929 = help: some possible visibility restrictions are:
3030 `pub(crate)`: visible only on the current crate
@@ -35,7 +35,7 @@ error: incorrect visibility restriction
3535 --> $DIR/pub-restricted.rs:41:6
3636 |
373741 | 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`
3939 |
4040 = help: some possible visibility restrictions are:
4141 `pub(crate)`: visible only on the current crate
0 commit comments