fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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