diff options
Diffstat (limited to 'src/test/ui/blind-item-local-shadow.rs')
-rw-r--r-- | src/test/ui/blind-item-local-shadow.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/blind-item-local-shadow.rs b/src/test/ui/blind-item-local-shadow.rs new file mode 100644 index 000000000..942aeb6fd --- /dev/null +++ b/src/test/ui/blind-item-local-shadow.rs @@ -0,0 +1,13 @@ +// run-pass + +#![allow(dead_code)] +#![allow(unused_imports)] +mod bar { + pub fn foo() -> bool { true } +} + +fn main() { + let foo = || false; + use bar::foo; + assert_eq!(foo(), false); +} |