fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0308]: mismatched types 2 --> $DIR/issue-54505-no-literals.rs:16:16 3 | 4LL | take_range(std::ops::Range { start: 0, end: 1 }); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | | 7 | expected reference, found struct `std::ops::Range` 8 | help: consider borrowing here: `&std::ops::Range { start: 0, end: 1 }` 9 | 10 = note: expected reference `&_` 11 found struct `std::ops::Range<{integer}>` 12 13error[E0308]: mismatched types 14 --> $DIR/issue-54505-no-literals.rs:21:16 15 | 16LL | take_range(::std::ops::Range { start: 0, end: 1 }); 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18 | | 19 | expected reference, found struct `std::ops::Range` 20 | help: consider borrowing here: `&::std::ops::Range { start: 0, end: 1 }` 21 | 22 = note: expected reference `&_` 23 found struct `std::ops::Range<{integer}>` 24 25error[E0308]: mismatched types 26 --> $DIR/issue-54505-no-literals.rs:26:16 27 | 28LL | take_range(std::ops::RangeFrom { start: 1 }); 29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 30 | | 31 | expected reference, found struct `std::ops::RangeFrom` 32 | help: consider borrowing here: `&std::ops::RangeFrom { start: 1 }` 33 | 34 = note: expected reference `&_` 35 found struct `std::ops::RangeFrom<{integer}>` 36 37error[E0308]: mismatched types 38 --> $DIR/issue-54505-no-literals.rs:31:16 39 | 40LL | take_range(::std::ops::RangeFrom { start: 1 }); 41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 42 | | 43 | expected reference, found struct `std::ops::RangeFrom` 44 | help: consider borrowing here: `&::std::ops::RangeFrom { start: 1 }` 45 | 46 = note: expected reference `&_` 47 found struct `std::ops::RangeFrom<{integer}>` 48 49error[E0308]: mismatched types 50 --> $DIR/issue-54505-no-literals.rs:36:16 51 | 52LL | take_range(std::ops::RangeFull {}); 53 | ^^^^^^^^^^^^^^^^^^^^^^ 54 | | 55 | expected reference, found struct `std::ops::RangeFull` 56 | help: consider borrowing here: `&std::ops::RangeFull {}` 57 | 58 = note: expected reference `&_` 59 found struct `std::ops::RangeFull` 60 61error[E0308]: mismatched types 62 --> $DIR/issue-54505-no-literals.rs:41:16 63 | 64LL | take_range(::std::ops::RangeFull {}); 65 | ^^^^^^^^^^^^^^^^^^^^^^^^ 66 | | 67 | expected reference, found struct `std::ops::RangeFull` 68 | help: consider borrowing here: `&::std::ops::RangeFull {}` 69 | 70 = note: expected reference `&_` 71 found struct `std::ops::RangeFull` 72 73error[E0308]: mismatched types 74 --> $DIR/issue-54505-no-literals.rs:46:16 75 | 76LL | take_range(std::ops::RangeInclusive::new(0, 1)); 77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 78 | | 79 | expected reference, found struct `std::ops::RangeInclusive` 80 | help: consider borrowing here: `&std::ops::RangeInclusive::new(0, 1)` 81 | 82 = note: expected reference `&_` 83 found struct `std::ops::RangeInclusive<{integer}>` 84 85error[E0308]: mismatched types 86 --> $DIR/issue-54505-no-literals.rs:51:16 87 | 88LL | take_range(::std::ops::RangeInclusive::new(0, 1)); 89 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 90 | | 91 | expected reference, found struct `std::ops::RangeInclusive` 92 | help: consider borrowing here: `&::std::ops::RangeInclusive::new(0, 1)` 93 | 94 = note: expected reference `&_` 95 found struct `std::ops::RangeInclusive<{integer}>` 96 97error[E0308]: mismatched types 98 --> $DIR/issue-54505-no-literals.rs:56:16 99 | 100LL | take_range(std::ops::RangeTo { end: 5 }); 101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 102 | | 103 | expected reference, found struct `std::ops::RangeTo` 104 | help: consider borrowing here: `&std::ops::RangeTo { end: 5 }` 105 | 106 = note: expected reference `&_` 107 found struct `std::ops::RangeTo<{integer}>` 108 109error[E0308]: mismatched types 110 --> $DIR/issue-54505-no-literals.rs:61:16 111 | 112LL | take_range(::std::ops::RangeTo { end: 5 }); 113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 114 | | 115 | expected reference, found struct `std::ops::RangeTo` 116 | help: consider borrowing here: `&::std::ops::RangeTo { end: 5 }` 117 | 118 = note: expected reference `&_` 119 found struct `std::ops::RangeTo<{integer}>` 120 121error[E0308]: mismatched types 122 --> $DIR/issue-54505-no-literals.rs:66:16 123 | 124LL | take_range(std::ops::RangeToInclusive { end: 5 }); 125 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 126 | | 127 | expected reference, found struct `std::ops::RangeToInclusive` 128 | help: consider borrowing here: `&std::ops::RangeToInclusive { end: 5 }` 129 | 130 = note: expected reference `&_` 131 found struct `std::ops::RangeToInclusive<{integer}>` 132 133error[E0308]: mismatched types 134 --> $DIR/issue-54505-no-literals.rs:71:16 135 | 136LL | take_range(::std::ops::RangeToInclusive { end: 5 }); 137 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 138 | | 139 | expected reference, found struct `std::ops::RangeToInclusive` 140 | help: consider borrowing here: `&::std::ops::RangeToInclusive { end: 5 }` 141 | 142 = note: expected reference `&_` 143 found struct `std::ops::RangeToInclusive<{integer}>` 144 145error: aborting due to 12 previous errors 146 147For more information about this error, try `rustc --explain E0308`.