| 
1 | 1 | error: imports cannot refer to type parameters  | 
2 |  | -  --> $DIR/future-proofing-locals.rs:13:9  | 
 | 2 | +  --> $DIR/future-proofing-locals.rs:14:9  | 
3 | 3 |    |  | 
4 | 4 | LL |     use T as _;  | 
5 | 5 |    |         ^  | 
6 | 6 | 
 
  | 
7 | 7 | error: imports cannot refer to type parameters  | 
8 |  | -  --> $DIR/future-proofing-locals.rs:14:9  | 
 | 8 | +  --> $DIR/future-proofing-locals.rs:15:9  | 
9 | 9 |    |  | 
10 | 10 | LL |     use T::U;  | 
11 | 11 |    |         ^  | 
12 | 12 | 
 
  | 
13 | 13 | error: imports cannot refer to type parameters  | 
14 |  | -  --> $DIR/future-proofing-locals.rs:15:9  | 
 | 14 | +  --> $DIR/future-proofing-locals.rs:16:9  | 
15 | 15 |    |  | 
16 | 16 | LL |     use T::*;  | 
17 | 17 |    |         ^  | 
18 | 18 | 
 
  | 
19 | 19 | error: imports cannot refer to type parameters  | 
20 |  | -  --> $DIR/future-proofing-locals.rs:19:9  | 
 | 20 | +  --> $DIR/future-proofing-locals.rs:20:9  | 
21 | 21 |    |  | 
22 | 22 | LL |     use T;  | 
23 | 23 |    |         ^  | 
24 | 24 | 
 
  | 
25 | 25 | error: imports cannot refer to local variables  | 
26 |  | -  --> $DIR/future-proofing-locals.rs:25:9  | 
 | 26 | +  --> $DIR/future-proofing-locals.rs:26:9  | 
27 | 27 |    |  | 
28 | 28 | LL |     use x as _;  | 
29 | 29 |    |         ^  | 
30 | 30 | 
 
  | 
31 | 31 | error: imports cannot refer to local variables  | 
32 |  | -  --> $DIR/future-proofing-locals.rs:31:9  | 
 | 32 | +  --> $DIR/future-proofing-locals.rs:32:9  | 
33 | 33 |    |  | 
34 | 34 | LL |     use x;  | 
35 | 35 |    |         ^  | 
36 | 36 | 
 
  | 
37 | 37 | error: imports cannot refer to local variables  | 
38 |  | -  --> $DIR/future-proofing-locals.rs:37:17  | 
 | 38 | +  --> $DIR/future-proofing-locals.rs:38:17  | 
39 | 39 |    |  | 
40 | 40 | LL |             use x;  | 
41 | 41 |    |                 ^  | 
42 | 42 | 
 
  | 
43 | 43 | error: imports cannot refer to type parameters  | 
44 |  | -  --> $DIR/future-proofing-locals.rs:45:10  | 
 | 44 | +  --> $DIR/future-proofing-locals.rs:46:10  | 
45 | 45 |    |  | 
46 | 46 | LL |     use {T as _, x};  | 
47 | 47 |    |          ^  | 
48 | 48 | 
 
  | 
49 | 49 | error: imports cannot refer to local variables  | 
50 |  | -  --> $DIR/future-proofing-locals.rs:45:18  | 
 | 50 | +  --> $DIR/future-proofing-locals.rs:46:18  | 
51 | 51 |    |  | 
52 | 52 | LL |     use {T as _, x};  | 
53 | 53 |    |                  ^  | 
54 | 54 | 
 
  | 
55 |  | -warning: the item `T` is imported redundantly  | 
56 |  | -  --> $DIR/future-proofing-locals.rs:19:9  | 
57 |  | -   |  | 
58 |  | -LL | / mod T {  | 
59 |  | -LL | |     pub struct U;  | 
60 |  | -LL | | }  | 
61 |  | -   | |_- the item `T` was already imported here  | 
62 |  | -...  | 
63 |  | -LL |       use T;  | 
64 |  | -   |           ^  | 
65 |  | -   |  | 
66 |  | -   = note: #[warn(redundant_import)] on by default  | 
67 |  | - | 
68 |  | -warning: the item `x` is imported redundantly  | 
69 |  | -  --> $DIR/future-proofing-locals.rs:31:9  | 
70 |  | -   |  | 
71 |  | -LL | / mod x {  | 
72 |  | -LL | |     pub struct y;  | 
73 |  | -LL | | }  | 
74 |  | -   | |_- the item `x` was already imported here  | 
75 |  | -...  | 
76 |  | -LL |       use x;  | 
77 |  | -   |           ^  | 
78 |  | - | 
79 |  | -warning: the item `x` is imported redundantly  | 
80 |  | -  --> $DIR/future-proofing-locals.rs:37:17  | 
81 |  | -   |  | 
82 |  | -LL | / mod x {  | 
83 |  | -LL | |     pub struct y;  | 
84 |  | -LL | | }  | 
85 |  | -   | |_- the item `x` was already imported here  | 
86 |  | -...  | 
87 |  | -LL |               use x;  | 
88 |  | -   |                   ^  | 
89 |  | - | 
90 |  | -warning: the item `x` is imported redundantly  | 
91 |  | -  --> $DIR/future-proofing-locals.rs:45:18  | 
92 |  | -   |  | 
93 |  | -LL | / mod x {  | 
94 |  | -LL | |     pub struct y;  | 
95 |  | -LL | | }  | 
96 |  | -   | |_- the item `x` was already imported here  | 
97 |  | -...  | 
98 |  | -LL |       use {T as _, x};  | 
99 |  | -   |                    ^  | 
100 |  | - | 
101 | 55 | error: aborting due to 9 previous errors  | 
102 | 56 | 
 
  | 
0 commit comments