mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
![]() ``` error[E0308]: `match` arms have incompatible types --> tests/ui/codemap_tests/huge_multispan_highlight.rs:98:18 | 6 | let _ = match true { | ---------- `match` arms have incompatible types 7 | true => ( | _________________- 8 | | // last line shown in multispan header ... | 96 | | 97 | | ), | |_________- this is found to be of type `()` 98 | false => " | __________________^ ... | 119 | | 120 | | ", | |_________^ expected `()`, found `&str` error[E0308]: `match` arms have incompatible types --> tests/ui/codemap_tests/huge_multispan_highlight.rs:215:18 | 122 | let _ = match true { | ---------- `match` arms have incompatible types 123 | true => ( | _________________- 124 | | 125 | | 1 // last line shown in multispan header ... | 213 | | 214 | | ), | |_________- this is found to be of type `{integer}` 215 | false => " | __________________^ 216 | | 217 | | 218 | | 1 last line shown in multispan ... | 237 | | 238 | | ", | |_________^ expected integer, found `&str` ``` |
||
---|---|---|
.. | ||
bad-format-args.rs | ||
bad-format-args.stderr | ||
coherence-overlapping-inherent-impl-trait.rs | ||
coherence-overlapping-inherent-impl-trait.stderr | ||
empty_span.rs | ||
empty_span.stderr | ||
huge_multispan_highlight.rs | ||
huge_multispan_highlight.svg | ||
issue-11715.rs | ||
issue-11715.stderr | ||
issue-28308.rs | ||
issue-28308.stderr | ||
one_line.rs | ||
one_line.stderr | ||
overlapping_inherent_impls.rs | ||
overlapping_inherent_impls.stderr | ||
tab_2.rs | ||
tab_2.stderr | ||
tab_3.rs | ||
tab_3.stderr | ||
tab.rs | ||
tab.stderr | ||
two_files_data.rs | ||
two_files.rs | ||
two_files.stderr | ||
unicode_2.rs | ||
unicode_2.stderr | ||
unicode_3.rs | ||
unicode_3.stderr | ||
unicode.expanded.stdout | ||
unicode.normal.stderr | ||
unicode.rs |