mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
32e48fc36b
this is kinda jank because it means people need both machines to bless the tests
1.9 KiB
1.9 KiB
error[E0308]: mismatched types
--> $DIR/highlighting.rs:26:11
|
LL | query(wrapped_fn);
| ----- ^^^^^^^^^^ one type is more general than the other
| |
| arguments to this function are incorrect
|
= note: expected fn pointer `for<'a> fn(Box<(dyn Any + Send + 'a)>) -> Pin<_>`
found fn item `fn(Box<(dyn Any + Send + 'static)>) -> Pin<_> {wrapped_fn}`
note: function defined here
--> $DIR/highlighting.rs:15:4
|
LL | fn query(_: fn(Box<(dyn Any + Send + '_)>) -> Pin<Box<(
| ____^^^^^_-
LL | | dyn Future<Output = Result<Box<(dyn Any + 'static)>, String>> + Send + 'static
LL | | )>>) {}
| |___-
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.
--> $DIR/highlighting.rs:26:11
|
LL | query(wrapped_fn);
| ----- ^^^^^^^^^^ one type is more general than the other
| |
| arguments to this function are incorrect
|
= note: expected fn pointer `for<'a> fn(Box<(dyn Any + Send + 'a)>) -> Pin<_>`
found fn item `fn(Box<(dyn Any + Send + 'static)>) -> Pin<_> {wrapped_fn}`
note: function defined here
--> $DIR/highlighting.rs:15:4
|
LL | fn query(_: fn(Box<(dyn Any + Send + '_)>) -> Pin<Box<(
| ____^^^^^_-
LL | | dyn Future<Output = Result<Box<(dyn Any + 'static)>, String>> + Send + 'static
LL | | )>>) {}
| |___-
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.