Skip to content

Commit c4ce463

Browse files
committed
Add compile-fail tests for malformed glob imports
1 parent c6482c0 commit c4ce463

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// error-pattern:cannot path into a glob
2+
import foo::*::bar
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// error-pattern:globbed imports can't be renamed
2+
3+
import baz = foo::*;
4+
5+
mod foo {
6+
fn bar() {}
7+
}
8+
9+
fn main() {
10+
}

0 commit comments

Comments
 (0)