Skip to content

Commit 867c1d0

Browse files
committed
Fix issue-37887.rs
1 parent e4980b6 commit 867c1d0

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

tests/ui/imports/issue-37887.stderr renamed to tests/ui/imports/issue-37887.edition2015.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0432]: unresolved import `test`
2-
--> $DIR/issue-37887.rs:3:9
2+
--> $DIR/issue-37887.rs:7:9
33
|
44
LL | use test::*;
55
| ^^^^ use of unresolved module or unlinked crate `test`
@@ -10,7 +10,7 @@ LL + extern crate test;
1010
|
1111

1212
error[E0658]: use of unstable library feature `test`
13-
--> $DIR/issue-37887.rs:2:5
13+
--> $DIR/issue-37887.rs:6:5
1414
|
1515
LL | extern crate test;
1616
| ^^^^^^^^^^^^^^^^^^
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
error[E0658]: use of unstable library feature `test`
2+
--> $DIR/issue-37887.rs:6:5
3+
|
4+
LL | extern crate test;
5+
| ^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: see issue #50297 <https://github.com/rust-lang/rust/issues/50297> for more information
8+
= help: add `#![feature(test)]` to the crate attributes to enable
9+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10+
11+
error[E0658]: use of unstable library feature `test`
12+
--> $DIR/issue-37887.rs:7:9
13+
|
14+
LL | use test::*;
15+
| ^^^^
16+
|
17+
= note: see issue #50297 <https://github.com/rust-lang/rust/issues/50297> for more information
18+
= help: add `#![feature(test)]` to the crate attributes to enable
19+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
20+
21+
error: aborting due to 2 previous errors
22+
23+
For more information about this error, try `rustc --explain E0658`.

tests/ui/imports/issue-37887.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
//@ revisions: edition2015 edition2021
2+
//@[edition2015] edition: 2015
3+
//@[edition2021] edition: 2021
4+
//
15
fn main() {
26
extern crate test; //~ ERROR use of unstable
3-
use test::*; //~ ERROR unresolved import
7+
use test::*; //[edition2015]~ ERROR unresolved import
8+
//[edition2021]~^ ERROR use of unstable
49
}

0 commit comments

Comments
 (0)