mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
Add compile-fail tests for malformed glob imports
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
// error-pattern:cannot path into a glob
|
||||
import foo::*::bar
|
||||
@@ -0,0 +1,10 @@
|
||||
// error-pattern:globbed imports can't be renamed
|
||||
|
||||
import baz = foo::*;
|
||||
|
||||
mod foo {
|
||||
fn bar() {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
Reference in New Issue
Block a user