]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0586.stderr
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0586.stderr
1 error[E0586]: inclusive range with no end
2   --> $DIR/E0586.rs:3:19
3    |
4 LL |     let x = &tmp[1..=];
5    |                   ^^^ help: use `..` instead
6    |
7    = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`)
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0586`.