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
+ | ^^^^^^^^^^^^^^^^^^
2
12
3
13
error[E0308]: mismatched types
4
- --> $DIR/issue-54505-no-std.rs:27 :16
14
+ --> $DIR/issue-54505-no-std.rs:29 :16
5
15
|
6
16
LL | take_range(0..1);
7
17
| ---------- ^^^^
@@ -13,13 +23,13 @@ LL | take_range(0..1);
13
23
= note: expected reference `&_`
14
24
found struct `Range<{integer}>`
15
25
note: function defined here
16
- --> $DIR/issue-54505-no-std.rs:23 :4
26
+ --> $DIR/issue-54505-no-std.rs:25 :4
17
27
|
18
28
LL | fn take_range(_r: &impl RangeBounds<i8>) {}
19
29
| ^^^^^^^^^^ -------------------------
20
30
21
31
error[E0308]: mismatched types
22
- --> $DIR/issue-54505-no-std.rs:32 :16
32
+ --> $DIR/issue-54505-no-std.rs:34 :16
23
33
|
24
34
LL | take_range(1..);
25
35
| ---------- ^^^
@@ -31,13 +41,13 @@ LL | take_range(1..);
31
41
= note: expected reference `&_`
32
42
found struct `RangeFrom<{integer}>`
33
43
note: function defined here
34
- --> $DIR/issue-54505-no-std.rs:23 :4
44
+ --> $DIR/issue-54505-no-std.rs:25 :4
35
45
|
36
46
LL | fn take_range(_r: &impl RangeBounds<i8>) {}
37
47
| ^^^^^^^^^^ -------------------------
38
48
39
49
error[E0308]: mismatched types
40
- --> $DIR/issue-54505-no-std.rs:37 :16
50
+ --> $DIR/issue-54505-no-std.rs:39 :16
41
51
|
42
52
LL | take_range(..);
43
53
| ---------- ^^
@@ -49,13 +59,13 @@ LL | take_range(..);
49
59
= note: expected reference `&_`
50
60
found struct `RangeFull`
51
61
note: function defined here
52
- --> $DIR/issue-54505-no-std.rs:23 :4
62
+ --> $DIR/issue-54505-no-std.rs:25 :4
53
63
|
54
64
LL | fn take_range(_r: &impl RangeBounds<i8>) {}
55
65
| ^^^^^^^^^^ -------------------------
56
66
57
67
error[E0308]: mismatched types
58
- --> $DIR/issue-54505-no-std.rs:42 :16
68
+ --> $DIR/issue-54505-no-std.rs:44 :16
59
69
|
60
70
LL | take_range(0..=1);
61
71
| ---------- ^^^^^
@@ -67,13 +77,13 @@ LL | take_range(0..=1);
67
77
= note: expected reference `&_`
68
78
found struct `RangeInclusive<{integer}>`
69
79
note: function defined here
70
- --> $DIR/issue-54505-no-std.rs:23 :4
80
+ --> $DIR/issue-54505-no-std.rs:25 :4
71
81
|
72
82
LL | fn take_range(_r: &impl RangeBounds<i8>) {}
73
83
| ^^^^^^^^^^ -------------------------
74
84
75
85
error[E0308]: mismatched types
76
- --> $DIR/issue-54505-no-std.rs:47 :16
86
+ --> $DIR/issue-54505-no-std.rs:49 :16
77
87
|
78
88
LL | take_range(..5);
79
89
| ---------- ^^^
@@ -85,13 +95,13 @@ LL | take_range(..5);
85
95
= note: expected reference `&_`
86
96
found struct `RangeTo<{integer}>`
87
97
note: function defined here
88
- --> $DIR/issue-54505-no-std.rs:23 :4
98
+ --> $DIR/issue-54505-no-std.rs:25 :4
89
99
|
90
100
LL | fn take_range(_r: &impl RangeBounds<i8>) {}
91
101
| ^^^^^^^^^^ -------------------------
92
102
93
103
error[E0308]: mismatched types
94
- --> $DIR/issue-54505-no-std.rs:52 :16
104
+ --> $DIR/issue-54505-no-std.rs:54 :16
95
105
|
96
106
LL | take_range(..=42);
97
107
| ---------- ^^^^^
@@ -103,11 +113,11 @@ LL | take_range(..=42);
103
113
= note: expected reference `&_`
104
114
found struct `RangeToInclusive<{integer}>`
105
115
note: function defined here
106
- --> $DIR/issue-54505-no-std.rs:23 :4
116
+ --> $DIR/issue-54505-no-std.rs:25 :4
107
117
|
108
118
LL | fn take_range(_r: &impl RangeBounds<i8>) {}
109
119
| ^^^^^^^^^^ -------------------------
110
120
111
- error: aborting due to 7 previous errors
121
+ error: aborting due to 8 previous errors
112
122
113
123
For more information about this error, try `rustc --explain E0308`.
0 commit comments