]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-18514.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / issues / issue-18514.rs
1 // run-pass
2 // Test that we don't ICE when codegenning a generic impl method from
3 // an extern crate that contains a match expression on a local
4 // variable place where one of the match case bodies contains an
5 // expression that autoderefs through an overloaded generic deref
6 // impl.
7
8 // aux-build:issue-18514.rs
9
10 extern crate issue_18514 as ice;
11 use ice::{Tr, St};
12
13 fn main() {
14     let st: St<()> = St(vec![]);
15     st.tr();
16 }