1
+ error[E0428]: the name `Single3` is defined multiple times
2
+ --> $DIR/partial_pub_fields.rs:37:5
3
+ |
4
+ LL | pub struct Single3 {
5
+ | ------------------ previous definition of the type `Single3` here
6
+ ...
7
+ LL | pub struct Single3 {
8
+ | ^^^^^^^^^^^^^^^^^^ `Single3` redefined here
9
+ |
10
+ = note: `Single3` must be defined only once in the type namespace of this block
11
+
1
12
error: mixed usage of pub and non-pub fields
2
- --> $DIR/partial_pub_fields.rs:12 :9
13
+ --> $DIR/partial_pub_fields.rs:10 :9
3
14
|
4
15
LL | pub paths: HashMap<u32, String>,
5
16
| ^^^
@@ -8,12 +19,29 @@ LL | pub paths: HashMap<u32, String>,
8
19
= note: `-D clippy::partial-pub-fields` implied by `-D warnings`
9
20
10
21
error: mixed usage of pub and non-pub fields
11
- --> $DIR/partial_pub_fields.rs:18 :9
22
+ --> $DIR/partial_pub_fields.rs:16 :9
12
23
|
13
24
LL | b: u8,
14
25
| ^
15
26
|
16
27
= help: consider using public field here
17
28
18
- error: aborting due to 2 previous errors
29
+ error: mixed usage of pub and non-pub fields
30
+ --> $DIR/partial_pub_fields.rs:19:27
31
+ |
32
+ LL | pub struct Point(i32, pub i32);
33
+ | ^^^
34
+ |
35
+ = help: consider using private field here
36
+
37
+ error: mixed usage of pub and non-pub fields
38
+ --> $DIR/partial_pub_fields.rs:23:9
39
+ |
40
+ LL | pub pos: u32,
41
+ | ^^^
42
+ |
43
+ = help: consider using private field here
44
+
45
+ error: aborting due to 5 previous errors
19
46
47
+ For more information about this error, try `rustc --explain E0428`.
0 commit comments