]> git.proxmox.com Git - rustc.git/blame - tests/ui/range/issue-54505-no-std.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / range / issue-54505-no-std.stderr
CommitLineData
487cf647
FG
1error: return type should be `!`
2 --> $DIR/issue-54505-no-std.rs:20:20
3 |
4LL | fn panic_handler() {}
5 | ^
6
7error: function should have one argument
8 --> $DIR/issue-54505-no-std.rs:20:1
9 |
10LL | fn panic_handler() {}
11 | ^^^^^^^^^^^^^^^^^^
0bf4aa26
XL
12
13error[E0308]: mismatched types
487cf647 14 --> $DIR/issue-54505-no-std.rs:29:16
0bf4aa26
XL
15 |
16LL | 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 25note: function defined here
487cf647 26 --> $DIR/issue-54505-no-std.rs:25:4
923072b8
FG
27 |
28LL | fn take_range(_r: &impl RangeBounds<i8>) {}
29 | ^^^^^^^^^^ -------------------------
0bf4aa26
XL
30
31error[E0308]: mismatched types
487cf647 32 --> $DIR/issue-54505-no-std.rs:34:16
0bf4aa26
XL
33 |
34LL | 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 43note: function defined here
487cf647 44 --> $DIR/issue-54505-no-std.rs:25:4
923072b8
FG
45 |
46LL | fn take_range(_r: &impl RangeBounds<i8>) {}
47 | ^^^^^^^^^^ -------------------------
0bf4aa26
XL
48
49error[E0308]: mismatched types
487cf647 50 --> $DIR/issue-54505-no-std.rs:39:16
0bf4aa26
XL
51 |
52LL | 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 61note: function defined here
487cf647 62 --> $DIR/issue-54505-no-std.rs:25:4
923072b8
FG
63 |
64LL | fn take_range(_r: &impl RangeBounds<i8>) {}
65 | ^^^^^^^^^^ -------------------------
0bf4aa26
XL
66
67error[E0308]: mismatched types
487cf647 68 --> $DIR/issue-54505-no-std.rs:44:16
0bf4aa26
XL
69 |
70LL | 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 79note: function defined here
487cf647 80 --> $DIR/issue-54505-no-std.rs:25:4
923072b8
FG
81 |
82LL | fn take_range(_r: &impl RangeBounds<i8>) {}
83 | ^^^^^^^^^^ -------------------------
0bf4aa26
XL
84
85error[E0308]: mismatched types
487cf647 86 --> $DIR/issue-54505-no-std.rs:49:16
0bf4aa26
XL
87 |
88LL | 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 97note: function defined here
487cf647 98 --> $DIR/issue-54505-no-std.rs:25:4
923072b8
FG
99 |
100LL | fn take_range(_r: &impl RangeBounds<i8>) {}
101 | ^^^^^^^^^^ -------------------------
0bf4aa26
XL
102
103error[E0308]: mismatched types
487cf647 104 --> $DIR/issue-54505-no-std.rs:54:16
0bf4aa26
XL
105 |
106LL | 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 115note: function defined here
487cf647 116 --> $DIR/issue-54505-no-std.rs:25:4
923072b8
FG
117 |
118LL | fn take_range(_r: &impl RangeBounds<i8>) {}
119 | ^^^^^^^^^^ -------------------------
0bf4aa26 120
487cf647 121error: aborting due to 8 previous errors
0bf4aa26
XL
122
123For more information about this error, try `rustc --explain E0308`.