2024-12-13 12:19:46 +00:00
|
|
|
error[E0277]: the trait bound `unsafe fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>> {target_feature}: AsyncFn()` is not satisfied
|
2024-08-07 16:36:41 +00:00
|
|
|
--> $DIR/fn-exception-target-features.rs:16:10
|
|
|
|
|
|
|
|
|
LL | test(target_feature);
|
2024-12-13 12:19:46 +00:00
|
|
|
| ---- ^^^^^^^^^^^^^^ the trait `AsyncFn()` is not implemented for fn item `unsafe fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>> {target_feature}`
|
2024-08-07 16:36:41 +00:00
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
|
|
|
|
|
|
|
|
note: required by a bound in `test`
|
|
|
|
--> $DIR/fn-exception-target-features.rs:13:17
|
|
|
|
|
|
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`.
|