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