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