@@ -12,7 +12,7 @@ LL | pub fn run() -> Result<_, E> {
1212 | +++
1313
1414error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
15- --> $DIR/issue-75883.rs:15 :35
15+ --> $DIR/issue-75883.rs:16 :35
1616 |
1717LL | pub fn interact(&mut self) -> Result<_> {
1818 | ^^^^^^ - supplied 1 generic argument
@@ -24,19 +24,47 @@ help: add missing generic argument
2424LL | pub fn interact(&mut self) -> Result<_, E> {
2525 | +++
2626
27- error[E0121 ]: the placeholder `_` is not allowed within types on item signatures for return types
28- --> $DIR/issue-75883.rs:15:42
27+ error[E0107 ]: enum takes 2 generic arguments but 1 generic argument was supplied
28+ --> $DIR/issue-75883.rs:6:21
2929 |
30- LL | pub fn interact(&mut self) -> Result<_> {
31- | ^ not allowed in type signatures
30+ LL | pub fn run() -> Result<_> {
31+ | ^^^^^^ - supplied 1 generic argument
32+ | |
33+ | expected 2 generic arguments
34+ |
35+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
36+ help: add missing generic argument
37+ |
38+ LL | pub fn run() -> Result<_, E> {
39+ | +++
3240
3341error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
3442 --> $DIR/issue-75883.rs:6:28
3543 |
3644LL | pub fn run() -> Result<_> {
3745 | ^ not allowed in type signatures
3846
39- error: aborting due to 4 previous errors
47+ error[E0107]: enum takes 2 generic arguments but 1 generic argument was supplied
48+ --> $DIR/issue-75883.rs:16:35
49+ |
50+ LL | pub fn interact(&mut self) -> Result<_> {
51+ | ^^^^^^ - supplied 1 generic argument
52+ | |
53+ | expected 2 generic arguments
54+ |
55+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
56+ help: add missing generic argument
57+ |
58+ LL | pub fn interact(&mut self) -> Result<_, E> {
59+ | +++
60+
61+ error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
62+ --> $DIR/issue-75883.rs:16:42
63+ |
64+ LL | pub fn interact(&mut self) -> Result<_> {
65+ | ^ not allowed in type signatures
66+
67+ error: aborting due to 6 previous errors
4068
4169Some errors have detailed explanations: E0107, E0121.
4270For more information about an error, try `rustc --explain E0107`.
0 commit comments