Files
rust/tests/ui/generics/generic-impl-method-match-autoderef-18514.rs

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

19 lines
541 B
Rust
Raw Normal View History

//@ run-pass
2018-05-08 16:10:16 +03:00
// Test that we don't ICE when codegenning a generic impl method from
2014-11-01 15:20:57 -07: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 15:20:57 -07:00
// expression that autoderefs through an overloaded generic deref
// impl.
2025-07-13 15:56:27 -04:00
//@ aux-build:generic-impl-method-match-autoderef-18514.rs
2025-07-13 15:56:27 -04:00
extern crate generic_impl_method_match_autoderef_18514 as ice;
2014-11-01 15:20:57 -07:00
use ice::{Tr, St};
fn main() {
let st: St<()> = St(vec![]);
st.tr();
}
2025-07-13 15:56:27 -04:00
// https://github.com/rust-lang/rust/issues/18514