rust/tests/ui/pattern/issue-72565.rs

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

9 lines
203 B
Rust
Raw Normal View History

2020-10-01 00:10:33 -05:00
const F: &'static dyn PartialEq<u32> = &7u32;
fn main() {
let a: &dyn PartialEq<u32> = &7u32;
match a {
F => panic!(), //~ ERROR: `dyn PartialEq<u32>` cannot be used in patterns
2020-10-01 00:10:33 -05:00
}
}