2024-11-11 17:42:35 +00:00
|
|
|
error[E0277]: the trait bound `unsafe fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>> {unsafety}: AsyncFn()` is not satisfied
|
2024-11-06 17:53:59 +00:00
|
|
|
--> $DIR/fn-exception.rs:17:10
|
2024-08-07 16:36:41 +00:00
|
|
|
|
|
|
|
|
LL | test(unsafety);
|
2024-11-11 17:42:35 +00:00
|
|
|
| ---- ^^^^^^^^ the trait `AsyncFn()` is not implemented for fn item `unsafe fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>> {unsafety}`
|
2024-08-07 16:36:41 +00:00
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
|
|
|
|
|
|
|
|
note: required by a bound in `test`
|
2024-11-06 17:53:59 +00:00
|
|
|
--> $DIR/fn-exception.rs:14: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
|
|
|
|
2024-11-11 17:42:35 +00:00
|
|
|
error[E0277]: the trait bound `extern "C" fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>> {abi}: AsyncFn()` is not satisfied
|
2024-11-06 17:53:59 +00:00
|
|
|
--> $DIR/fn-exception.rs:18:10
|
2024-08-07 16:36:41 +00:00
|
|
|
|
|
|
|
|
LL | test(abi);
|
2024-11-11 17:42:35 +00:00
|
|
|
| ---- ^^^ the trait `AsyncFn()` is not implemented for fn item `extern "C" fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>> {abi}`
|
2024-08-07 16:36:41 +00:00
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
|
|
|
|
|
|
|
|
note: required by a bound in `test`
|
2024-11-06 17:53:59 +00:00
|
|
|
--> $DIR/fn-exception.rs:14: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 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|