Small first step in expr_path. Call find_final_def just to detect
unresolved names. find_final_def is going to be extended to return the final expr.
This commit is contained in:
parent
18947f83cc
commit
9e2324ad1e
3 changed files with 48 additions and 24 deletions
8
src/test/compile-fail/bad-expr-path.rs
Normal file
8
src/test/compile-fail/bad-expr-path.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// error-pattern: unresolved name: a
|
||||
|
||||
mod m1 {
|
||||
}
|
||||
|
||||
fn main(vec[str] args) {
|
||||
log m1.a;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue