mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
17 lines
259 B
Rust
17 lines
259 B
Rust
// https://github.com/rust-lang/rust/issues/5521
|
|
//@ run-pass
|
|
#![allow(dead_code)]
|
|
//@ aux-build:aux-5521.rs
|
|
|
|
extern crate aux_5521 as foo;
|
|
|
|
fn bar(a: foo::map) {
|
|
if false {
|
|
panic!();
|
|
} else {
|
|
let _b = &(*a)[&2];
|
|
}
|
|
}
|
|
|
|
fn main() {}
|