mirror of https://github.com/rust-lang/rust
21 lines
757 B
Plaintext
21 lines
757 B
Plaintext
error[E0277]: the trait bound `FnOnce<()>::{synthetic#0}: const Compat` is not satisfied
|
|
--> $DIR/const-fns-are-early-bound.rs:31:17
|
|
|
|
|
LL | is_const_fn(foo);
|
|
| ----------- ^^^ the trait `const Compat` is not implemented for `FnOnce<()>::{synthetic#0}`
|
|
| |
|
|
| required by a bound introduced by this call
|
|
|
|
|
note: required by a bound in `is_const_fn`
|
|
--> $DIR/const-fns-are-early-bound.rs:25:12
|
|
|
|
|
LL | fn is_const_fn<F>(_: F)
|
|
| ----------- required by a bound in this function
|
|
LL | where
|
|
LL | F: const FnOnce<()>,
|
|
| ^^^^^^^^^^^^^^^^ required by this bound in `is_const_fn`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|