]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-namespace.rs
Rollup merge of #105758 - Nilstrieb:typeck-results-mod, r=compiler-errors
[rust.git] / src / test / ui / type-namespace.rs
1 // run-pass
2
3 struct A { a: isize }
4
5 fn a(a: A) -> isize { return a.a; }
6
7 pub fn main() { let x: A = A {a: 1}; assert_eq!(a(x), 1); }