2023-05-16 23:05:46 -05:00
|
|
|
error[E0741]: `&'static (dyn A + 'static)` can't be used as a const parameter type
|
2020-11-17 04:44:21 -06:00
|
|
|
--> $DIR/issue-63322-forbid-dyn.rs:9:18
|
2020-08-26 05:44:00 -05:00
|
|
|
|
|
|
|
|
LL | fn test<const T: &'static dyn A>() {
|
2022-05-24 06:01:11 -05:00
|
|
|
| ^^^^^^^^^^^^^^
|
2023-05-16 23:05:46 -05:00
|
|
|
|
|
|
|
|
= note: `(dyn A + 'static)` must implement `ConstParamTy`, but it does not
|
2020-08-26 05:44:00 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0741`.
|