Skip to content

Commit fb82283

Browse files
committed
resolve test case
resolve must ignore syntax context when comparing module names
1 parent 7668fb2 commit fb82283

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
mod x {
2+
pub fn g() -> uint {14}
3+
}
4+
5+
fn main(){
6+
// should *not* shadow the module x:
7+
let x = 9;
8+
// use it to avoid warnings:
9+
x+3;
10+
assert_eq!(x::g(),14);
11+
}

0 commit comments

Comments
 (0)