about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/const-impl-trait.stderr
blob: cbb68d8c9839e986f73f80b45933f9b74571e25e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0277]: the trait bound `(): const PartialEq` is not satisfied
  --> $DIR/const-impl-trait.rs:34:17
   |
LL |     assert!(cmp(&()));
   |             --- ^^^
   |             |
   |             required by a bound introduced by this call
   |
note: required by a bound in `cmp`
  --> $DIR/const-impl-trait.rs:11:23
   |
LL | const fn cmp(a: &impl [const] PartialEq) -> bool {
   |                       ^^^^^^^^^^^^^^^^^ required by this bound in `cmp`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.