1 error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied
2 --> $DIR/issue-75883.rs:6:21
4 LL | pub fn run() -> Result<_> {
5 | ^^^^^^ - supplied 1 generic argument
7 | expected 2 generic arguments
9 note: enum defined here, with 2 generic parameters: `T`, `E`
10 --> $SRC_DIR/core/src/result.rs:LL:COL
12 LL | pub enum Result<T, E> {
14 help: add missing generic argument
16 LL | pub fn run() -> Result<_, E> {
19 error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied
20 --> $DIR/issue-75883.rs:15:35
22 LL | pub fn interact(&mut self) -> Result<_> {
23 | ^^^^^^ - supplied 1 generic argument
25 | expected 2 generic arguments
27 note: enum defined here, with 2 generic parameters: `T`, `E`
28 --> $SRC_DIR/core/src/result.rs:LL:COL
30 LL | pub enum Result<T, E> {
32 help: add missing generic argument
34 LL | pub fn interact(&mut self) -> Result<_, E> {
37 error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
38 --> $DIR/issue-75883.rs:15:42
40 LL | pub fn interact(&mut self) -> Result<_> {
41 | ^ not allowed in type signatures
43 error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
44 --> $DIR/issue-75883.rs:6:28
46 LL | pub fn run() -> Result<_> {
47 | ^ not allowed in type signatures
49 error: aborting due to 4 previous errors
51 Some errors have detailed explanations: E0107, E0121.
52 For more information about an error, try `rustc --explain E0107`.