error: `dyn PartialEq` cannot be used in patterns --> $DIR/issue-72565.rs:6:9 | LL | F => panic!(), | ^ error: aborting due to 1 previous error