Files
rust/tests/ui/traits/const-traits/const-impl-trait.stderr

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

18 lines
569 B
Plaintext
Raw Normal View History

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
|
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`.