rust/tests/ui/issues/issue-18514.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
428 B
Rust
Raw Normal View History

// 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
// 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
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();
}