mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
17 lines
248 B
Rust
17 lines
248 B
Rust
//@ 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 => {}
|
|
|
|
_ => (),
|
|
}
|
|
}
|