rust/tests/crashes/121613.rs

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

25 lines
276 B
Rust
Raw Normal View History

//@ known-bug: #121613
fn main() {
let _ = <Foo as A>::Assoc { br: 2 };
let <E>::V(..) = E::V(|a, b| a.cmp(b));
}
struct StructStruct {
br: i8,
}
struct Foo;
trait A {
type Assoc;
}
impl A for Foo {
type Assoc = StructStruct;
}
enum E {
V(u8),
}