mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 11:03:16 +00:00
16 lines
460 B
Rust
16 lines
460 B
Rust
|
// originally from ./src/test/ui/pattern/usefulness/consts-opaque.rs
|
||
|
// panicked at 'assertion failed: rows.iter().all(|r| r.len() == v.len())',
|
||
|
// compiler/rustc_mir_build/src/thir/pattern/_match.rs:2030:5
|
||
|
|
||
|
#[derive(PartialEq)]
|
||
|
struct Foo(i32);
|
||
|
const FOO_REF_REF: &&Foo = &&Foo(42);
|
||
|
|
||
|
fn main() {
|
||
|
// This used to cause an ICE (https://github.com/rust-lang/rust/issues/78071)
|
||
|
match FOO_REF_REF {
|
||
|
FOO_REF_REF => {},
|
||
|
Foo(_) => {},
|
||
|
}
|
||
|
}
|