blob: a152287403b758758e9e782d94664d5af953a312 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
error: mixed usage of pub and non-pub fields
--> $DIR/partial_pub_fields.rs:10:9
|
LL | pub paths: HashMap<u32, String>,
| ^^^
|
= help: consider using private field here
= note: `-D clippy::partial-pub-fields` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::partial_pub_fields)]`
error: mixed usage of pub and non-pub fields
--> $DIR/partial_pub_fields.rs:17:9
|
LL | b: u8,
| ^
|
= help: consider using public field here
error: mixed usage of pub and non-pub fields
--> $DIR/partial_pub_fields.rs:21:27
|
LL | pub struct Point(i32, pub i32);
| ^^^
|
= help: consider using private field here
error: mixed usage of pub and non-pub fields
--> $DIR/partial_pub_fields.rs:26:9
|
LL | pub pos: u32,
| ^^^
|
= help: consider using private field here
error: aborting due to 4 previous errors
|