]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-18514.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 }