]> git.lizzy.rs Git - rust.git/blob - tests/ui/partial_pub_fields.stderr
Lint unnecessary safety comments on statements and block tail expressions
[rust.git] / tests / ui / partial_pub_fields.stderr
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`
9
10 error: mixed usage of pub and non-pub fields
11   --> $DIR/partial_pub_fields.rs:16:9
12    |
13 LL |         b: u8,
14    |         ^
15    |
16    = help: consider using public field here
17
18 error: mixed usage of pub and non-pub fields
19   --> $DIR/partial_pub_fields.rs:19:27
20    |
21 LL |     pub struct Point(i32, pub i32);
22    |                           ^^^
23    |
24    = help: consider using private field here
25
26 error: mixed usage of pub and non-pub fields
27   --> $DIR/partial_pub_fields.rs:23:9
28    |
29 LL |         pub pos: u32,
30    |         ^^^
31    |
32    = help: consider using private field here
33
34 error: aborting due to 4 previous errors
35