summary refs log tree commit diff
path: root/tests/ui/generics/generic-impl-method-match-autoderef-18514.rs
blob: 3520e9362093ea812db258736264da70921c271c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ run-pass
// Test that we don't ICE when codegenning a generic impl method from
// an extern crate that contains a match expression on a local
// variable place where one of the match case bodies contains an
// expression that autoderefs through an overloaded generic deref
// impl.

//@ aux-build:generic-impl-method-match-autoderef-18514.rs

extern crate generic_impl_method_match_autoderef_18514 as ice;
use ice::{Tr, St};

fn main() {
    let st: St<()> = St(vec![]);
    st.tr();
}

// https://github.com/rust-lang/rust/issues/18514