1- error[E0698 ]: incorrect visibility restriction
1+ error[E0704 ]: incorrect visibility restriction
22 --> $DIR/pub-restricted.rs:15:6
33 |
44LL | pub (a) fn afn() {} //~ incorrect visibility restriction
@@ -9,7 +9,7 @@ LL | pub (a) fn afn() {} //~ incorrect visibility restriction
99 `pub(super)`: visible only in the current module's parent
1010 `pub(in path::to::module)`: visible only on the specified path
1111
12- error[E0698 ]: incorrect visibility restriction
12+ error[E0704 ]: incorrect visibility restriction
1313 --> $DIR/pub-restricted.rs:16:6
1414 |
1515LL | pub (b) fn bfn() {} //~ incorrect visibility restriction
@@ -20,7 +20,7 @@ LL | pub (b) fn bfn() {} //~ incorrect visibility restriction
2020 `pub(super)`: visible only in the current module's parent
2121 `pub(in path::to::module)`: visible only on the specified path
2222
23- error[E0698 ]: incorrect visibility restriction
23+ error[E0704 ]: incorrect visibility restriction
2424 --> $DIR/pub-restricted.rs:32:14
2525 |
2626LL | pub (a) invalid: usize, //~ incorrect visibility restriction
@@ -31,7 +31,7 @@ LL | pub (a) invalid: usize, //~ incorrect visibility restriction
3131 `pub(super)`: visible only in the current module's parent
3232 `pub(in path::to::module)`: visible only on the specified path
3333
34- error[E0698 ]: incorrect visibility restriction
34+ error[E0704 ]: incorrect visibility restriction
3535 --> $DIR/pub-restricted.rs:41:6
3636 |
3737LL | pub (xyz) fn xyz() {} //~ incorrect visibility restriction
@@ -50,4 +50,4 @@ LL | pub (in x) non_parent_invalid: usize, //~ ERROR visibilities can on
5050
5151error: aborting due to 5 previous errors
5252
53- For more information about this error, try `rustc --explain E0698 `.
53+ For more information about this error, try `rustc --explain E0704 `.
0 commit comments