|
1 | 1 | error: Configuration types must be public. |
2 | 2 | Mark `A` as `pub`, and make sure it can be imported from outside your crate. |
3 | | - --> tests/config/fail/not_public.rs:4:1 |
| 3 | + --> tests/config/fail/not_public.rs:5:1 |
4 | 4 | | |
5 | | -4 | struct A; |
| 5 | +5 | struct A; |
6 | 6 | | ^^^^^^^^ |
7 | 7 |
|
8 | 8 | error: Configuration types must be public. |
9 | 9 | Mark `A1` as `pub`, and make sure it can be imported from outside your crate. |
10 | | - --> tests/config/fail/not_public.rs:7:1 |
| 10 | + --> tests/config/fail/not_public.rs:8:1 |
11 | 11 | | |
12 | | -7 | enum A1 {} |
| 12 | +8 | enum A1 {} |
13 | 13 | | ^^^^^^^ |
14 | 14 |
|
15 | 15 | error: Configuration types must be public. |
16 | 16 | Mark `B` as `pub`, instead of `pub(crate)`, and make sure it can be imported from outside your crate. |
17 | | - --> tests/config/fail/not_public.rs:10:1 |
| 17 | + --> tests/config/fail/not_public.rs:11:1 |
18 | 18 | | |
19 | | -10 | pub(crate) struct B; |
| 19 | +11 | pub(crate) struct B; |
20 | 20 | | ^^^^^^^^^^ |
21 | 21 |
|
22 | 22 | error: Configuration types must be public. |
23 | 23 | Mark `B1` as `pub`, and make sure it can be imported from outside your crate. |
24 | | - --> tests/config/fail/not_public.rs:13:1 |
| 24 | + --> tests/config/fail/not_public.rs:14:1 |
25 | 25 | | |
26 | | -13 | enum B1 {} |
| 26 | +14 | enum B1 {} |
27 | 27 | | ^^^^^^^ |
28 | 28 |
|
29 | 29 | error: Configuration types must be public. |
30 | 30 | Mark `use` as `pub`, and make sure it can be imported from outside your crate. |
31 | | - --> tests/config/fail/not_public.rs:16:1 |
| 31 | + --> tests/config/fail/not_public.rs:17:1 |
32 | 32 | | |
33 | | -16 | use sub::A as A2; |
| 33 | +17 | use sub::A as A2; |
34 | 34 | | ^^^^^^^^^^^^^^^^ |
35 | 35 |
|
36 | 36 | error: Configuration types must be public. |
37 | 37 | Mark `use` as `pub`, instead of `pub(crate)`, and make sure it can be imported from outside your crate. |
38 | | - --> tests/config/fail/not_public.rs:19:1 |
| 38 | + --> tests/config/fail/not_public.rs:20:1 |
39 | 39 | | |
40 | | -19 | pub(crate) use sub::A as A3; |
| 40 | +20 | pub(crate) use sub::A as A3; |
41 | 41 | | ^^^^^^^^^^ |
42 | | - |
43 | | -warning: unused import: `sub::A as A2` |
44 | | - --> tests/config/fail/not_public.rs:16:5 |
45 | | - | |
46 | | -16 | use sub::A as A2; |
47 | | - | ^^^^^^^^^^^^ |
48 | | - | |
49 | | - = note: `#[warn(unused_imports)]` on by default |
50 | | - |
51 | | -warning: unused import: `sub::A as A3` |
52 | | - --> tests/config/fail/not_public.rs:19:16 |
53 | | - | |
54 | | -19 | pub(crate) use sub::A as A3; |
55 | | - | ^^^^^^^^^^^^ |
0 commit comments