1 error: reached the type-length limit while instantiating `D::matches::$CLOSURE`
2 --> $DIR/issue-22638.rs:53:5
4 LL | pub fn matches<F: Fn()>(&self, f: &F) {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: consider adding a `#![type_length_limit="30408681"]` attribute to your crate
9 error: aborting due to previous error