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