rust/tests/crashes/125185.rs

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

17 lines
248 B
Rust
Raw Normal View History

2024-05-18 21:56:57 +00:00
//@ known-bug: rust-lang/rust#125185
//@ compile-flags: -Zvalidate-mir
type Foo = impl Send;
struct A;
const VALUE: Foo = value();
fn test(foo: Foo<'a>, f: impl for<'b> FnMut()) {
match VALUE {
0 | 0 => {}
_ => (),
}
}