rust/tests/ui/issues/issue-5521.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
214 B
Rust
Raw Normal View History

// 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() {}