2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2014-02-03 10:12:26 -08:00
|
|
|
//@ aux-build:issue-5521.rs
|
|
|
|
|
|
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2015-03-27 10:22:44 -07:00
|
|
|
extern crate issue_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() {}
|