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.

10 lines
362 B
Plaintext
Raw Normal View History

2022-05-24 06:01:11 -05:00
error[E0741]: `(dyn A + 'static)` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
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
| ^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0741`.