1 error[E0282]: type annotations needed
2 --> $DIR/cross-return-site-inference.rs:33:5
5 | ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
7 help: consider specifying the generic arguments
12 error[E0282]: type annotations needed
13 --> $DIR/cross-return-site-inference.rs:38:12
15 LL | return Err(From::from("foo"));
16 | ^^^ cannot infer type of the type parameter `E` declared on the enum `Result`
18 help: consider specifying the generic arguments
20 LL | return Err::<(), E>(From::from("foo"));
23 error[E0282]: type annotations needed
24 --> $DIR/cross-return-site-inference.rs:44:5
26 LL | Err(From::from("foo"))
27 | ^^^ cannot infer type of the type parameter `E` declared on the enum `Result`
29 help: consider specifying the generic arguments
31 LL | Err::<(), E>(From::from("foo"))
34 error: aborting due to 3 previous errors
36 For more information about this error, try `rustc --explain E0282`.