]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-keyword.rs
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccjit-codegen
[rust.git] / src / test / ui / use / use-keyword.rs
1 // Check that imports with nakes super and self don't fail during parsing
2 // FIXME: this shouldn't fail during name resolution either
3
4 mod a {
5     mod b {
6         use self as A;
7         //~^ ERROR `self` imports are only allowed within a { } list
8         use super as B;
9         //~^ ERROR unresolved import `super` [E0432]
10         //~| no `super` in the root
11         use super::{self as C};
12         //~^ ERROR unresolved import `super` [E0432]
13         //~| no `super` in the root
14     }
15 }
16
17 fn main() {}