]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/issue-87461.stderr
Rollup merge of #99479 - Enselic:import-can-be-without-id, r=camelid
[rust.git] / src / test / ui / closures / issue-87461.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-87461.rs:10:8
3    |
4 LL |     Ok(())
5    |     -- ^^ expected `u16`, found `()`
6    |     |
7    |     arguments to this enum variant are incorrect
8    |
9 note: tuple variant defined here
10   --> $SRC_DIR/core/src/result.rs:LL:COL
11    |
12 LL |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
13    |     ^^
14
15 error[E0308]: mismatched types
16   --> $DIR/issue-87461.rs:17:8
17    |
18 LL |     Ok(())
19    |     -- ^^ expected `u16`, found `()`
20    |     |
21    |     arguments to this enum variant are incorrect
22    |
23 note: tuple variant defined here
24   --> $SRC_DIR/core/src/result.rs:LL:COL
25    |
26 LL |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
27    |     ^^
28
29 error[E0308]: mismatched types
30   --> $DIR/issue-87461.rs:26:12
31    |
32 LL |         Ok(())
33    |         -- ^^ expected `u16`, found `()`
34    |         |
35    |         arguments to this enum variant are incorrect
36    |
37 note: tuple variant defined here
38   --> $SRC_DIR/core/src/result.rs:LL:COL
39    |
40 LL |     Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
41    |     ^^
42
43 error: aborting due to 3 previous errors
44
45 For more information about this error, try `rustc --explain E0308`.