2024-12-15 20:32:14 +00:00
|
|
|
error[E0277]: the trait bound `#[target_features] fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>> {target_feature}: AsyncFn()` is not satisfied
|
2023-09-24 02:51:43 +00:00
|
|
|
--> $DIR/fn-exception-target-features.rs:15:10
|
2024-08-07 16:36:41 +00:00
|
|
|
|
|
|
|
|
LL | test(target_feature);
|
2024-12-15 20:32:14 +00:00
|
|
|
| ---- ^^^^^^^^^^^^^^ unsatisfied trait bound
|
2024-08-07 16:36:41 +00:00
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
|
|
|
|
|
2024-12-15 20:32:14 +00:00
|
|
|
= help: the trait `AsyncFn()` is not implemented for fn item `#[target_features] fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>> {target_feature}`
|
2024-08-07 16:36:41 +00:00
|
|
|
note: required by a bound in `test`
|
2023-09-24 02:51:43 +00:00
|
|
|
--> $DIR/fn-exception-target-features.rs:12:17
|
2024-08-07 16:36:41 +00:00
|
|
|
|
|
2024-11-04 18:59:57 +00:00
|
|
|
LL | fn test(f: impl AsyncFn()) {}
|
|
|
|
| ^^^^^^^^^ required by this bound in `test`
|
2024-08-07 16:36:41 +00:00
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|