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