Functionborrowck_errors_in_old_editionsThese should be errors in all editions. In edition 2024, they should be caught by the pattern typing rules disallowing `ref` when there's an inherited
tests/rust/ui/pattern/rfc-3627-match-ergonomics-2024/experimental/ref-binding-on-inh-ref-errors.rs:72