]> git.lizzy.rs Git - rust.git/blob - tests/ui/use/use-keyword.rs
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / 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() {}