2025-07-13 16:25:27 -04:00
|
|
|
// https://github.com/rust-lang/rust/issues/5521
|
2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2025-07-13 16:25:27 -04:00
|
|
|
//@ aux-build:aux-5521.rs
|
2014-02-03 10:12:26 -08:00
|
|
|
|
2025-07-13 16:25:27 -04:00
|
|
|
extern crate aux_5521 as foo;
|
2014-02-03 10:12:26 -08:00
|
|
|
|
2014-08-12 20:31:30 -07:00
|
|
|
fn bar(a: foo::map) {
|
2014-02-03 10:12:26 -08:00
|
|
|
if false {
|
2014-10-09 15:17:22 -04:00
|
|
|
panic!();
|
2014-02-03 10:12:26 -08:00
|
|
|
} else {
|
2015-03-21 21:15:47 -04:00
|
|
|
let _b = &(*a)[&2];
|
2014-02-03 10:12:26 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|