]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/single-line.stderr
Rollup merge of #107074 - lcnr:validate-dont-skip-opaque, r=compiler-errors
[rust.git] / tests / ui / match / single-line.stderr
1 error[E0308]: `match` arms have incompatible types
2   --> $DIR/single-line.rs:2:52
3    |
4 LL |     let _ = match Some(42) { Some(x) => x, None => "" };
5    |             --------------              -          ^^ expected integer, found `&str`
6    |             |                           |
7    |             |                           this is found to be of type `{integer}`
8    |             `match` arms have incompatible types
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.