error[E0741]: `&'static (dyn A + 'static)` can't be used as a const parameter type --> $DIR/issue-63322-forbid-dyn.rs:9:18 | LL | fn test() { | ^^^^^^^^^^^^^^ | = note: `(dyn A + 'static)` must implement `ConstParamTy`, but it does not error: aborting due to previous error For more information about this error, try `rustc --explain E0741`.