2025-06-20 14:44:20 +00:00
|
|
|
error[E0277]: the trait bound `(): const PartialEq` is not satisfied
|
|
|
|
|
--> $DIR/const-impl-trait.rs:34:17
|
2024-12-05 16:36:30 +00:00
|
|
|
|
|
2025-06-20 14:44:20 +00:00
|
|
|
LL | assert!(cmp(&()));
|
|
|
|
|
| --- ^^^
|
|
|
|
|
| |
|
|
|
|
|
| required by a bound introduced by this call
|
2024-12-05 16:36:30 +00:00
|
|
|
|
|
2025-06-20 14:44:20 +00:00
|
|
|
note: required by a bound in `cmp`
|
2024-12-05 16:36:30 +00:00
|
|
|
--> $DIR/const-impl-trait.rs:11:23
|
|
|
|
|
|
|
2025-03-11 12:08:45 +00:00
|
|
|
LL | const fn cmp(a: &impl [const] PartialEq) -> bool {
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^ required by this bound in `cmp`
|
2024-12-05 16:36:30 +00:00
|
|
|
|
2025-06-20 14:44:20 +00:00
|
|
|
error: aborting due to 1 previous error
|
2024-12-05 16:36:30 +00:00
|
|
|
|
2025-06-20 14:44:20 +00:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|