error[E0308]: mismatched types
--> tests/compile_fail/control/fail_wrong_error.rs:13:39
|
13 | let _ = Payload::fail::<SaveNote>("offline");
| ------------------------- ^^^^^^^^^ expected `ApiError`, found `&str`
| |
| arguments to this function are incorrect
|
note: associated function defined here
--> src/control.rs
|
| pub fn fail<N: Fallible>(error: N::Err) -> Self {
| ^^^^