diff options
Diffstat (limited to 'tests/ui/issues/issue-5521.rs')
-rw-r--r-- | tests/ui/issues/issue-5521.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-5521.rs b/tests/ui/issues/issue-5521.rs new file mode 100644 index 000000000..cafdbc399 --- /dev/null +++ b/tests/ui/issues/issue-5521.rs @@ -0,0 +1,17 @@ +// run-pass +#![allow(dead_code)] +// aux-build:issue-5521.rs + + + +extern crate issue_5521 as foo; + +fn bar(a: foo::map) { + if false { + panic!(); + } else { + let _b = &(*a)[&2]; + } +} + +fn main() {} |