Files
rust/tests/ui/parser/range_inclusive_dotdotdot.stderr
Esteban Küber f0845adb0c Show diff suggestion format on verbose replacement
```
error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
  --> $DIR/attempted-access-non-fatal.rs:7:15
   |
LL |     let _ = 2.l;
   |               ^
   |
help: if intended to be a floating point literal, consider adding a `0` after the period and a `f64` suffix
   |
LL -     let _ = 2.l;
LL +     let _ = 2.0f64;
   |
```
2025-02-10 20:21:39 +00:00

71 lines
1.3 KiB
Plaintext

error: unexpected token: `...`
--> $DIR/range_inclusive_dotdotdot.rs:6:12
|
LL | return ...1;
| ^^^
|
help: use `..` for an exclusive range
|
LL - return ...1;
LL + return ..1;
|
help: or `..=` for an inclusive range
|
LL - return ...1;
LL + return ..=1;
|
error: unexpected token: `...`
--> $DIR/range_inclusive_dotdotdot.rs:12:13
|
LL | let x = ...0;
| ^^^
|
help: use `..` for an exclusive range
|
LL - let x = ...0;
LL + let x = ..0;
|
help: or `..=` for an inclusive range
|
LL - let x = ...0;
LL + let x = ..=0;
|
error: unexpected token: `...`
--> $DIR/range_inclusive_dotdotdot.rs:16:14
|
LL | let x = 5...5;
| ^^^
|
help: use `..` for an exclusive range
|
LL - let x = 5...5;
LL + let x = 5..5;
|
help: or `..=` for an inclusive range
|
LL - let x = 5...5;
LL + let x = 5..=5;
|
error: unexpected token: `...`
--> $DIR/range_inclusive_dotdotdot.rs:20:15
|
LL | for _ in 0...1 {}
| ^^^
|
help: use `..` for an exclusive range
|
LL - for _ in 0...1 {}
LL + for _ in 0..1 {}
|
help: or `..=` for an inclusive range
|
LL - for _ in 0...1 {}
LL + for _ in 0..=1 {}
|
error: aborting due to 4 previous errors