]> git.lizzy.rs Git - rust.git/blob - src/test/ui/blind-item-local-shadow.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / blind-item-local-shadow.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 #![allow(unused_imports)]
5 mod bar {
6     pub fn foo() -> bool { true }
7 }
8
9 fn main() {
10     let foo = || false;
11     use bar::foo;
12     assert_eq!(foo(), false);
13 }