add test for root glob imports

Fixes #1472.
This commit is contained in:
Andy Russell 2017-07-12 12:53:02 -04:00
parent 3552595a3b
commit 320f18345b
No known key found for this signature in database
GPG Key ID: 78B13E28497AF2DF
2 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,10 @@ fn test() {
use ::{Foo};
use ::{Bar, Baz};
// Root globs
use *;
use ::*;
// spaces used to cause glob imports to disappear (#1356)
use super:: * ;
use foo::issue_1356:: * ;

View File

@ -60,6 +60,10 @@ fn test() {
use Foo;
use {Bar, Baz};
// Root globs
use ::*;
use ::*;
// spaces used to cause glob imports to disappear (#1356)
use super::*;
use foo::issue_1356::*;