rust/tests/ui/async-await/async-closures/fn-exception.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1.2 KiB
Plaintext
Raw Normal View History

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
|
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}`
| |
| 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-11-04 18:59:57 +00:00
LL | fn test(f: impl AsyncFn()) {}
| ^^^^^^^^^ required by this bound in `test`
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
|
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}`
| |
| 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-11-04 18:59:57 +00:00
LL | fn test(f: impl AsyncFn()) {}
| ^^^^^^^^^ required by this bound in `test`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.