37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
error[E0282]: type annotations needed
|
|
--> $DIR/cross-return-site-inference.rs:33:5
|
|
|
|
|
LL | Ok(())
|
|
| ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
|
|
|
|
|
help: consider specifying the generic arguments
|
|
|
|
|
LL | Ok::<(), E>(())
|
|
| +++++++++
|
|
|
|
error[E0282]: type annotations needed
|
|
--> $DIR/cross-return-site-inference.rs:38:12
|
|
|
|
|
LL | return Err(From::from("foo"));
|
|
| ^^^ cannot infer type of the type parameter `E` declared on the enum `Result`
|
|
|
|
|
help: consider specifying the generic arguments
|
|
|
|
|
LL | return Err::<(), E>(From::from("foo"));
|
|
| +++++++++
|
|
|
|
error[E0282]: type annotations needed
|
|
--> $DIR/cross-return-site-inference.rs:44:5
|
|
|
|
|
LL | Err(From::from("foo"))
|
|
| ^^^ cannot infer type of the type parameter `E` declared on the enum `Result`
|
|
|
|
|
help: consider specifying the generic arguments
|
|
|
|
|
LL | Err::<(), E>(From::from("foo"))
|
|
| +++++++++
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|