mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
18 lines
216 B
Rust
18 lines
216 B
Rust
//@ 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() {}
|