summaryrefslogtreecommitdiff
path: root/tests/snapshots/term__multiline_overlapping__rich_ascii_no_color.snap
blob: 3623d4d96aedbf610267e99fbbef42da4e73bc21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
source: codespan-reporting/tests/term.rs
expression: TEST_DATA.emit_no_color(&config)
---
error[E0308]: match arms have incompatible types
  --> codespan/src/file.rs:4:34
  |    
1 |   /         match line_index.compare(self.last_line_index()) {
2 |   |             Ordering::Less => Ok(self.line_starts()[line_index.to_usize()]),
  |   |                               --------------------------------------------- this is found to be of type `Result<ByteIndex, LineIndexOutOfBoundsError>`
3 |   |             Ordering::Equal => Ok(self.source_span().end()),
  |   |                                ---------------------------- this is found to be of type `Result<ByteIndex, LineIndexOutOfBoundsError>`
4 |   |             Ordering::Greater => LineIndexOutOfBoundsError {
  | /-|----------------------------------^
5 | | |                 given: line_index,
6 | | |                 max: self.last_line_index(),
7 | | |             },
  | \-|-------------^ expected enum `Result`, found struct `LineIndexOutOfBoundsError`
8 |   |         }
  |   \---------' `match` arms have incompatible types
  |    
  = expected type `Result<ByteIndex, LineIndexOutOfBoundsError>`
       found type `LineIndexOutOfBoundsError`