]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-75883.stderr
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / ui / typeck / issue-75883.stderr
1 error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied
2   --> $DIR/issue-75883.rs:6:21
3    |
4 LL |     pub fn run() -> Result<_> {
5    |                     ^^^^^^ - supplied 1 generic argument
6    |                     |
7    |                     expected 2 generic arguments
8    |
9 help: add missing generic argument
10    |
11 LL |     pub fn run() -> Result<_, E> {
12    |                             +++
13
14 error[E0107]: this enum takes 2 generic arguments but 1 generic argument was supplied
15   --> $DIR/issue-75883.rs:15:35
16    |
17 LL |     pub fn interact(&mut self) -> Result<_> {
18    |                                   ^^^^^^ - supplied 1 generic argument
19    |                                   |
20    |                                   expected 2 generic arguments
21    |
22 help: add missing generic argument
23    |
24 LL |     pub fn interact(&mut self) -> Result<_, E> {
25    |                                           +++
26
27 error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
28   --> $DIR/issue-75883.rs:15:42
29    |
30 LL |     pub fn interact(&mut self) -> Result<_> {
31    |                                          ^ not allowed in type signatures
32
33 error[E0121]: the placeholder `_` is not allowed within types on item signatures for return types
34   --> $DIR/issue-75883.rs:6:28
35    |
36 LL |     pub fn run() -> Result<_> {
37    |                            ^ not allowed in type signatures
38
39 error: aborting due to 4 previous errors
40
41 Some errors have detailed explanations: E0107, E0121.
42 For more information about an error, try `rustc --explain E0107`.