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