@@ -43,8 +43,8 @@ LL | use super::a;
43
43
help: consider adding a `#[cfg(test)]` to the parent module
44
44
--> $DIR/unused-imports-in-test-module.rs:16:1
45
45
|
46
- LL | mod test_a {
47
- | ^^^^^^^^^^
46
+ LL | mod tests {
47
+ | ^^^^^^^^^
48
48
49
49
error: unused import: `crate::b`
50
50
--> $DIR/unused-imports-in-test-module.rs:20:13
@@ -55,8 +55,116 @@ LL | use crate::b;
55
55
help: consider adding a `#[cfg(test)]` to the parent module
56
56
--> $DIR/unused-imports-in-test-module.rs:16:1
57
57
|
58
+ LL | mod tests {
59
+ | ^^^^^^^^^
60
+
61
+ error: unused import: `super::a`
62
+ --> $DIR/unused-imports-in-test-module.rs:25:9
63
+ |
64
+ LL | use super::a;
65
+ | ^^^^^^^^
66
+ |
67
+ help: consider adding a `#[cfg(test)]` to the parent module
68
+ --> $DIR/unused-imports-in-test-module.rs:24:1
69
+ |
70
+ LL | mod test_a {
71
+ | ^^^^^^^^^^
72
+
73
+ error: unused import: `crate::b`
74
+ --> $DIR/unused-imports-in-test-module.rs:28:13
75
+ |
76
+ LL | use crate::b;
77
+ | ^^^^^^^^
78
+ |
79
+ help: consider adding a `#[cfg(test)]` to the parent module
80
+ --> $DIR/unused-imports-in-test-module.rs:24:1
81
+ |
58
82
LL | mod test_a {
59
83
| ^^^^^^^^^^
60
84
61
- error: aborting due to 5 previous errors
85
+ error: unused import: `super::a`
86
+ --> $DIR/unused-imports-in-test-module.rs:33:9
87
+ |
88
+ LL | use super::a;
89
+ | ^^^^^^^^
90
+ |
91
+ help: consider adding a `#[cfg(test)]` to the parent module
92
+ --> $DIR/unused-imports-in-test-module.rs:32:1
93
+ |
94
+ LL | mod a_test {
95
+ | ^^^^^^^^^^
96
+
97
+ error: unused import: `crate::b`
98
+ --> $DIR/unused-imports-in-test-module.rs:36:13
99
+ |
100
+ LL | use crate::b;
101
+ | ^^^^^^^^
102
+ |
103
+ help: consider adding a `#[cfg(test)]` to the parent module
104
+ --> $DIR/unused-imports-in-test-module.rs:32:1
105
+ |
106
+ LL | mod a_test {
107
+ | ^^^^^^^^^^
108
+
109
+ error: unused import: `super::a`
110
+ --> $DIR/unused-imports-in-test-module.rs:41:9
111
+ |
112
+ LL | use super::a;
113
+ | ^^^^^^^^
114
+ |
115
+ help: consider adding a `#[cfg(test)]` to the parent module
116
+ --> $DIR/unused-imports-in-test-module.rs:40:1
117
+ |
118
+ LL | mod tests_a {
119
+ | ^^^^^^^^^^^
120
+
121
+ error: unused import: `crate::b`
122
+ --> $DIR/unused-imports-in-test-module.rs:44:13
123
+ |
124
+ LL | use crate::b;
125
+ | ^^^^^^^^
126
+ |
127
+ help: consider adding a `#[cfg(test)]` to the parent module
128
+ --> $DIR/unused-imports-in-test-module.rs:40:1
129
+ |
130
+ LL | mod tests_a {
131
+ | ^^^^^^^^^^^
132
+
133
+ error: unused import: `super::a`
134
+ --> $DIR/unused-imports-in-test-module.rs:49:9
135
+ |
136
+ LL | use super::a;
137
+ | ^^^^^^^^
138
+ |
139
+ help: consider adding a `#[cfg(test)]` to the parent module
140
+ --> $DIR/unused-imports-in-test-module.rs:48:1
141
+ |
142
+ LL | mod a_tests {
143
+ | ^^^^^^^^^^^
144
+
145
+ error: unused import: `crate::b`
146
+ --> $DIR/unused-imports-in-test-module.rs:52:13
147
+ |
148
+ LL | use crate::b;
149
+ | ^^^^^^^^
150
+ |
151
+ help: consider adding a `#[cfg(test)]` to the parent module
152
+ --> $DIR/unused-imports-in-test-module.rs:48:1
153
+ |
154
+ LL | mod a_tests {
155
+ | ^^^^^^^^^^^
156
+
157
+ error: unused import: `super::a`
158
+ --> $DIR/unused-imports-in-test-module.rs:57:9
159
+ |
160
+ LL | use super::a;
161
+ | ^^^^^^^^
162
+
163
+ error: unused import: `crate::b`
164
+ --> $DIR/unused-imports-in-test-module.rs:60:13
165
+ |
166
+ LL | use crate::b;
167
+ | ^^^^^^^^
168
+
169
+ error: aborting due to 15 previous errors
62
170
0 commit comments