]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/const-generics/issues/issue-63322-forbid-dyn.min.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-63322-forbid-dyn.min.stderr
index b1141cf3bdfbf03486ef60ade77968382d9a0c27..9f6c7ccf3fe746195c82ecc4ed743fb0a725d1c7 100644 (file)
@@ -7,12 +7,5 @@ LL | fn test<const T: &'static dyn A>() {
    = note: the only supported types are integers, `bool` and `char`
    = help: more complex types are supported with `#![feature(adt_const_params)]`
 
-error[E0741]: `&'static (dyn A + 'static)` must be annotated with `#[derive(PartialEq, Eq)]` to be used as the type of a const parameter
-  --> $DIR/issue-63322-forbid-dyn.rs:9:18
-   |
-LL | fn test<const T: &'static dyn A>() {
-   |                  ^^^^^^^^^^^^^^ `&'static (dyn A + 'static)` doesn't derive both `PartialEq` and `Eq`
-
-error: aborting due to 2 previous errors
+error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0741`.