blob: 21edb26de082eb4d0c7d43519db3751e7453b055 (
plain)
1
2
3
4
5
6
7
8
|
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
}
}
|