@@ -16,7 +16,7 @@ error: unused import: `super::a`
16
16
LL | use super::a;
17
17
| ^^^^^^^^
18
18
|
19
- help: consider adding a `#[cfg(test)]` to the containing module
19
+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
20
20
--> $DIR/unused-imports-in-test-module.rs:8:1
21
21
|
22
22
LL | mod test {
@@ -28,7 +28,7 @@ error: unused import: `super::a`
28
28
LL | use super::a;
29
29
| ^^^^^^^^
30
30
|
31
- help: consider adding a `#[cfg(test)]` to the containing module
31
+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
32
32
--> $DIR/unused-imports-in-test-module.rs:18:1
33
33
|
34
34
LL | mod tests {
@@ -40,7 +40,7 @@ error: unused import: `super::a`
40
40
LL | use super::a;
41
41
| ^^^^^^^^
42
42
|
43
- help: consider adding a `#[cfg(test)]` to the containing module
43
+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
44
44
--> $DIR/unused-imports-in-test-module.rs:28:1
45
45
|
46
46
LL | mod test_a {
@@ -52,7 +52,7 @@ error: unused import: `super::a`
52
52
LL | use super::a;
53
53
| ^^^^^^^^
54
54
|
55
- help: consider adding a `#[cfg(test)]` to the containing module
55
+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
56
56
--> $DIR/unused-imports-in-test-module.rs:38:1
57
57
|
58
58
LL | mod a_test {
@@ -64,7 +64,7 @@ error: unused import: `super::a`
64
64
LL | use super::a;
65
65
| ^^^^^^^^
66
66
|
67
- help: consider adding a `#[cfg(test)]` to the containing module
67
+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
68
68
--> $DIR/unused-imports-in-test-module.rs:48:1
69
69
|
70
70
LL | mod tests_a {
@@ -76,7 +76,7 @@ error: unused import: `super::a`
76
76
LL | use super::a;
77
77
| ^^^^^^^^
78
78
|
79
- help: consider adding a `#[cfg(test)]` to the containing module
79
+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
80
80
--> $DIR/unused-imports-in-test-module.rs:58:1
81
81
|
82
82
LL | mod a_tests {
0 commit comments