fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
2.5 KiB77 linesraw
1error: `#[panic_handler]` function required, but not found
2
3error[E0308]: mismatched types
4  --> $DIR/issue-54505-no-std.rs:28:16
5   |
6LL |     take_range(0..1);
7   |                ^^^^
8   |                |
9   |                expected reference, found struct `core::ops::Range`
10   |                help: consider borrowing here: `&(0..1)`
11   |
12   = note: expected reference `&_`
13                 found struct `core::ops::Range<{integer}>`
14
15error[E0308]: mismatched types
16  --> $DIR/issue-54505-no-std.rs:33:16
17   |
18LL |     take_range(1..);
19   |                ^^^
20   |                |
21   |                expected reference, found struct `core::ops::RangeFrom`
22   |                help: consider borrowing here: `&(1..)`
23   |
24   = note: expected reference `&_`
25                 found struct `core::ops::RangeFrom<{integer}>`
26
27error[E0308]: mismatched types
28  --> $DIR/issue-54505-no-std.rs:38:16
29   |
30LL |     take_range(..);
31   |                ^^
32   |                |
33   |                expected reference, found struct `core::ops::RangeFull`
34   |                help: consider borrowing here: `&(..)`
35   |
36   = note: expected reference `&_`
37                 found struct `core::ops::RangeFull`
38
39error[E0308]: mismatched types
40  --> $DIR/issue-54505-no-std.rs:43:16
41   |
42LL |     take_range(0..=1);
43   |                ^^^^^
44   |                |
45   |                expected reference, found struct `core::ops::RangeInclusive`
46   |                help: consider borrowing here: `&(0..=1)`
47   |
48   = note: expected reference `&_`
49                 found struct `core::ops::RangeInclusive<{integer}>`
50
51error[E0308]: mismatched types
52  --> $DIR/issue-54505-no-std.rs:48:16
53   |
54LL |     take_range(..5);
55   |                ^^^
56   |                |
57   |                expected reference, found struct `core::ops::RangeTo`
58   |                help: consider borrowing here: `&(..5)`
59   |
60   = note: expected reference `&_`
61                 found struct `core::ops::RangeTo<{integer}>`
62
63error[E0308]: mismatched types
64  --> $DIR/issue-54505-no-std.rs:53:16
65   |
66LL |     take_range(..=42);
67   |                ^^^^^
68   |                |
69   |                expected reference, found struct `core::ops::RangeToInclusive`
70   |                help: consider borrowing here: `&(..=42)`
71   |
72   = note: expected reference `&_`
73                 found struct `core::ops::RangeToInclusive<{integer}>`
74
75error: aborting due to 7 previous errors
76
77For more information about this error, try `rustc --explain E0308`.