rust/tests/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
400 B
Plaintext
Raw Normal View History

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
|
LL | fn test<const T: &'static dyn A>() {
2022-05-24 06:01:11 -05:00
| ^^^^^^^^^^^^^^
|
= 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`.