Add compile-fail tests for malformed glob imports

This commit is contained in:
Brian Anderson 2011-08-16 15:14:43 -07:00
parent c6482c0083
commit c4ce463f37
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,2 @@
// error-pattern:cannot path into a glob
import foo::*::bar

View File

@ -0,0 +1,10 @@
// error-pattern:globbed imports can't be renamed
import baz = foo::*;
mod foo {
fn bar() {}
}
fn main() {
}