blob: 0a3aebd63b26318a9a0b59efda781ddec86a2fef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//@ run-pass
#![allow(unused_must_use)]
mod x {
pub fn g() -> usize {14}
}
pub fn main(){
// should *not* shadow the module x:
let x = 9;
// use it to avoid warnings:
x+3;
assert_eq!(x::g(),14);
}
|