2018-09-29 09:13:08 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-10-02 16:10:04 -05:00
|
|
|
--> $DIR/issue-54505.rs:14:16
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
|
LL | take_range(0..1);
|
|
|
|
| ^^^^
|
|
|
|
| |
|
|
|
|
| expected reference, found struct `std::ops::Range`
|
|
|
|
| help: consider borrowing here: `&(0..1)`
|
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected reference `&_`
|
|
|
|
found struct `std::ops::Range<{integer}>`
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-10-02 16:10:04 -05:00
|
|
|
--> $DIR/issue-54505.rs:19:16
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
|
LL | take_range(1..);
|
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected reference, found struct `std::ops::RangeFrom`
|
|
|
|
| help: consider borrowing here: `&(1..)`
|
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected reference `&_`
|
|
|
|
found struct `std::ops::RangeFrom<{integer}>`
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-10-02 16:10:04 -05:00
|
|
|
--> $DIR/issue-54505.rs:24:16
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
|
LL | take_range(..);
|
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| expected reference, found struct `std::ops::RangeFull`
|
|
|
|
| help: consider borrowing here: `&(..)`
|
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected reference `&_`
|
|
|
|
found struct `std::ops::RangeFull`
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-10-02 16:10:04 -05:00
|
|
|
--> $DIR/issue-54505.rs:29:16
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
|
LL | take_range(0..=1);
|
|
|
|
| ^^^^^
|
|
|
|
| |
|
|
|
|
| expected reference, found struct `std::ops::RangeInclusive`
|
|
|
|
| help: consider borrowing here: `&(0..=1)`
|
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected reference `&_`
|
|
|
|
found struct `std::ops::RangeInclusive<{integer}>`
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-10-02 16:10:04 -05:00
|
|
|
--> $DIR/issue-54505.rs:34:16
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
|
LL | take_range(..5);
|
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected reference, found struct `std::ops::RangeTo`
|
|
|
|
| help: consider borrowing here: `&(..5)`
|
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected reference `&_`
|
|
|
|
found struct `std::ops::RangeTo<{integer}>`
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-10-02 16:10:04 -05:00
|
|
|
--> $DIR/issue-54505.rs:39:16
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
|
LL | take_range(..=42);
|
|
|
|
| ^^^^^
|
|
|
|
| |
|
|
|
|
| expected reference, found struct `std::ops::RangeToInclusive`
|
|
|
|
| help: consider borrowing here: `&(..=42)`
|
|
|
|
|
|
2019-11-13 16:16:56 -06:00
|
|
|
= note: expected reference `&_`
|
|
|
|
found struct `std::ops::RangeToInclusive<{integer}>`
|
2018-09-29 09:13:08 -05:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|