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