1
Fork 0
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/const-impl-trait.stderr

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

17 lines
861 B
Text
Raw Normal View History

2023-12-06 02:42:59 +00:00
error[E0277]: can't compare `impl PartialEq + Destruct + Copy` with `impl PartialEq + Destruct + Copy`
--> $DIR/const-impl-trait.rs:28:17
2023-04-16 11:12:37 +00:00
|
2023-12-06 02:42:59 +00:00
LL | fn huh() -> impl ~const PartialEq + ~const Destruct + Copy {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `impl PartialEq + Destruct + Copy == impl PartialEq + Destruct + Copy`
2023-04-16 11:12:37 +00:00
|
2023-12-06 02:42:59 +00:00
= help: the trait `PartialEq<impl PartialEq + Destruct + Copy>` is not implemented for `impl PartialEq + Destruct + Copy`
note: required by a bound in `Foo::{opaque#0}`
--> $DIR/const-impl-trait.rs:24:22
2023-04-16 11:12:37 +00:00
|
LL | fn huh() -> impl ~const PartialEq + ~const Destruct + Copy;
2023-12-06 02:42:59 +00:00
| ^^^^^^^^^^^^^^^^ required by this bound in `Foo::{opaque#0}`
2023-04-16 11:12:37 +00:00
2023-12-06 02:42:59 +00:00
error: aborting due to 1 previous error
2023-04-16 11:12:37 +00:00
2023-12-06 02:42:59 +00:00
For more information about this error, try `rustc --explain E0277`.