rust/tests/crashes/125799.rs

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

23 lines
325 B
Rust
Raw Normal View History

2024-06-08 11:36:21 -05:00
//@ known-bug: rust-lang/rust#125799
//@ only-x86_64
trait Trait<T> {
type Assoc;
}
impl<T> Trait<T> for Vec<T> {
type Assoc = ();
}
impl Trait<u8> for Vec<u8> {}
const BAR: <Vec<u8> as Trait<u8>>::Assoc = 3;
pub fn main() {
let x: isize = 3;
let _ = match x {
BAR => 2,
_ => 3,
};
}