1- error: `#[panic_handler]` function required, but not found
1+ error: return type should be `!`
2+ --> $DIR/issue-54505-no-std.rs:20:20
3+ |
4+ LL | fn panic_handler() {}
5+ | ^
6+
7+ error: function should have one argument
8+ --> $DIR/issue-54505-no-std.rs:20:1
9+ |
10+ LL | fn panic_handler() {}
11+ | ^^^^^^^^^^^^^^^^^^
212
313error[E0308]: mismatched types
4- --> $DIR/issue-54505-no-std.rs:27 :16
14+ --> $DIR/issue-54505-no-std.rs:29 :16
515 |
616LL | take_range(0..1);
717 | ---------- ^^^^
@@ -13,13 +23,13 @@ LL | take_range(0..1);
1323 = note: expected reference `&_`
1424 found struct `Range<{integer}>`
1525note: function defined here
16- --> $DIR/issue-54505-no-std.rs:23 :4
26+ --> $DIR/issue-54505-no-std.rs:25 :4
1727 |
1828LL | fn take_range(_r: &impl RangeBounds<i8>) {}
1929 | ^^^^^^^^^^ -------------------------
2030
2131error[E0308]: mismatched types
22- --> $DIR/issue-54505-no-std.rs:32 :16
32+ --> $DIR/issue-54505-no-std.rs:34 :16
2333 |
2434LL | take_range(1..);
2535 | ---------- ^^^
@@ -31,13 +41,13 @@ LL | take_range(1..);
3141 = note: expected reference `&_`
3242 found struct `RangeFrom<{integer}>`
3343note: function defined here
34- --> $DIR/issue-54505-no-std.rs:23 :4
44+ --> $DIR/issue-54505-no-std.rs:25 :4
3545 |
3646LL | fn take_range(_r: &impl RangeBounds<i8>) {}
3747 | ^^^^^^^^^^ -------------------------
3848
3949error[E0308]: mismatched types
40- --> $DIR/issue-54505-no-std.rs:37 :16
50+ --> $DIR/issue-54505-no-std.rs:39 :16
4151 |
4252LL | take_range(..);
4353 | ---------- ^^
@@ -49,13 +59,13 @@ LL | take_range(..);
4959 = note: expected reference `&_`
5060 found struct `RangeFull`
5161note: function defined here
52- --> $DIR/issue-54505-no-std.rs:23 :4
62+ --> $DIR/issue-54505-no-std.rs:25 :4
5363 |
5464LL | fn take_range(_r: &impl RangeBounds<i8>) {}
5565 | ^^^^^^^^^^ -------------------------
5666
5767error[E0308]: mismatched types
58- --> $DIR/issue-54505-no-std.rs:42 :16
68+ --> $DIR/issue-54505-no-std.rs:44 :16
5969 |
6070LL | take_range(0..=1);
6171 | ---------- ^^^^^
@@ -67,13 +77,13 @@ LL | take_range(0..=1);
6777 = note: expected reference `&_`
6878 found struct `RangeInclusive<{integer}>`
6979note: function defined here
70- --> $DIR/issue-54505-no-std.rs:23 :4
80+ --> $DIR/issue-54505-no-std.rs:25 :4
7181 |
7282LL | fn take_range(_r: &impl RangeBounds<i8>) {}
7383 | ^^^^^^^^^^ -------------------------
7484
7585error[E0308]: mismatched types
76- --> $DIR/issue-54505-no-std.rs:47 :16
86+ --> $DIR/issue-54505-no-std.rs:49 :16
7787 |
7888LL | take_range(..5);
7989 | ---------- ^^^
@@ -85,13 +95,13 @@ LL | take_range(..5);
8595 = note: expected reference `&_`
8696 found struct `RangeTo<{integer}>`
8797note: function defined here
88- --> $DIR/issue-54505-no-std.rs:23 :4
98+ --> $DIR/issue-54505-no-std.rs:25 :4
8999 |
90100LL | fn take_range(_r: &impl RangeBounds<i8>) {}
91101 | ^^^^^^^^^^ -------------------------
92102
93103error[E0308]: mismatched types
94- --> $DIR/issue-54505-no-std.rs:52 :16
104+ --> $DIR/issue-54505-no-std.rs:54 :16
95105 |
96106LL | take_range(..=42);
97107 | ---------- ^^^^^
@@ -103,11 +113,11 @@ LL | take_range(..=42);
103113 = note: expected reference `&_`
104114 found struct `RangeToInclusive<{integer}>`
105115note: function defined here
106- --> $DIR/issue-54505-no-std.rs:23 :4
116+ --> $DIR/issue-54505-no-std.rs:25 :4
107117 |
108118LL | fn take_range(_r: &impl RangeBounds<i8>) {}
109119 | ^^^^^^^^^^ -------------------------
110120
111- error: aborting due to 7 previous errors
121+ error: aborting due to 8 previous errors
112122
113123For more information about this error, try `rustc --explain E0308`.
0 commit comments