]> git.proxmox.com Git - rustc.git/blob - tests/ui/typeck/issue-46112.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / typeck / issue-46112.stderr
1 error[E0308]: mismatched types
2 --> $DIR/issue-46112.rs:9:21
3 |
4 LL | fn main() { test(Ok(())); }
5 | -- ^^ expected `Option<()>`, found `()`
6 | |
7 | arguments to this enum variant are incorrect
8 |
9 = note: expected enum `Option<()>`
10 found unit type `()`
11 help: the type constructed contains `()` due to the type of the argument passed
12 --> $DIR/issue-46112.rs:9:18
13 |
14 LL | fn main() { test(Ok(())); }
15 | ^^^--^
16 | |
17 | this argument influences the type of `Ok`
18 note: tuple variant defined here
19 --> $SRC_DIR/core/src/result.rs:LL:COL
20 help: try wrapping the expression in `Some`
21 |
22 LL | fn main() { test(Ok(Some(()))); }
23 | +++++ +
24
25 error: aborting due to previous error
26
27 For more information about this error, try `rustc --explain E0308`.