Skip to content

Commit a2e8522

Browse files
gnzlbgcrlf0710
authored andcommitted
Add new tests.
1 parent d5d4009 commit a2e8522

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/test/ui/rustc_private-libtest.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() {
2+
extern crate libtest;
3+
use libtest::*; //~ ERROR unresolved import
4+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0432]: unresolved import `libtest`
2+
--> $DIR/rustc_private-libtest.rs:3:9
3+
|
4+
LL | use libtest::*;
5+
| ^^^^^^^ maybe a missing `extern crate libtest;`?
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0432`.

0 commit comments

Comments
 (0)