1
- error: incorrect visibility restriction
1
+ error[E0698] : incorrect visibility restriction
2
2
--> $DIR/pub-restricted.rs:15:6
3
3
|
4
4
LL | pub (a) fn afn() {} //~ incorrect visibility restriction
@@ -9,7 +9,7 @@ LL | pub (a) fn afn() {} //~ incorrect visibility restriction
9
9
`pub(super)`: visible only in the current module's parent
10
10
`pub(in path::to::module)`: visible only on the specified path
11
11
12
- error: incorrect visibility restriction
12
+ error[E0698] : incorrect visibility restriction
13
13
--> $DIR/pub-restricted.rs:16:6
14
14
|
15
15
LL | pub (b) fn bfn() {} //~ incorrect visibility restriction
@@ -20,7 +20,7 @@ LL | pub (b) fn bfn() {} //~ incorrect visibility restriction
20
20
`pub(super)`: visible only in the current module's parent
21
21
`pub(in path::to::module)`: visible only on the specified path
22
22
23
- error: incorrect visibility restriction
23
+ error[E0698] : incorrect visibility restriction
24
24
--> $DIR/pub-restricted.rs:32:14
25
25
|
26
26
LL | pub (a) invalid: usize, //~ incorrect visibility restriction
@@ -31,7 +31,7 @@ LL | pub (a) invalid: usize, //~ incorrect visibility restriction
31
31
`pub(super)`: visible only in the current module's parent
32
32
`pub(in path::to::module)`: visible only on the specified path
33
33
34
- error: incorrect visibility restriction
34
+ error[E0698] : incorrect visibility restriction
35
35
--> $DIR/pub-restricted.rs:41:6
36
36
|
37
37
LL | pub (xyz) fn xyz() {} //~ incorrect visibility restriction
@@ -50,3 +50,4 @@ LL | pub (in x) non_parent_invalid: usize, //~ ERROR visibilities can on
50
50
51
51
error: aborting due to 5 previous errors
52
52
53
+ For more information about this error, try `rustc --explain E0698`.
0 commit comments