2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-05-08 08:10:16 -05:00
|
|
|
// Test that we don't ICE when codegenning a generic impl method from
|
2014-11-01 17:20:57 -05:00
|
|
|
// an extern crate that contains a match expression on a local
|
2018-01-28 17:59:34 -06:00
|
|
|
// variable place where one of the match case bodies contains an
|
2014-11-01 17:20:57 -05:00
|
|
|
// expression that autoderefs through an overloaded generic deref
|
|
|
|
// impl.
|
|
|
|
|
|
|
|
// aux-build:issue-18514.rs
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2015-03-27 12:22:44 -05:00
|
|
|
extern crate issue_18514 as ice;
|
2014-11-01 17:20:57 -05:00
|
|
|
use ice::{Tr, St};
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let st: St<()> = St(vec![]);
|
|
|
|
st.tr();
|
|
|
|
}
|