]> git.lizzy.rs Git - rust.git/blob - src/test/ui/range/issue-73553-misinterp-range-literal.stderr
Rollup merge of #91312 - terrarier2111:anon-const-ice, r=jackh726
[rust.git] / src / test / ui / range / issue-73553-misinterp-range-literal.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-73553-misinterp-range-literal.rs:12:10
3    |
4 LL |     demo(tell(1)..tell(10));
5    |          ^^^^^^^^^^^^^^^^^
6    |          |
7    |          expected reference, found struct `std::ops::Range`
8    |          help: consider borrowing here: `&(tell(1)..tell(10))`
9    |
10    = note: expected reference `&std::ops::Range<usize>`
11                  found struct `std::ops::Range<usize>`
12
13 error[E0308]: mismatched types
14   --> $DIR/issue-73553-misinterp-range-literal.rs:14:10
15    |
16 LL |     demo(1..10);
17    |          ^^^^^
18    |          |
19    |          expected reference, found struct `std::ops::Range`
20    |          help: consider borrowing here: `&(1..10)`
21    |
22    = note: expected reference `&std::ops::Range<usize>`
23                  found struct `std::ops::Range<{integer}>`
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0308`.