]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-63322-forbid-dyn.full.stderr
1 error[E0741]: `&'static (dyn A + 'static)` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
2 --> $DIR/issue-63322-forbid-dyn.rs:9:18
3 |
4 LL | fn test<const T: &'static dyn A>() {
5 | ^^^^^^^^^^^^^^ `&'static (dyn A + 'static)` doesn't derive both `PartialEq` and `Eq`
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0741`.