fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
674 B21 linesraw
1error: unused variable: `rest`
2  --> $DIR/issue-81314-unused-span-ident.rs:8:10
3   |
4LL |     let [rest @ ..] = [1, 2, 3];
5   |          ^^^^ help: if this is intentional, prefix it with an underscore: `_rest`
6   |
7note: the lint level is defined here
8  --> $DIR/issue-81314-unused-span-ident.rs:5:9
9   |
10LL | #![deny(unused)]
11   |         ^^^^^^
12   = note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
13
14error: unused variable: `rest`
15  --> $DIR/issue-81314-unused-span-ident.rs:11:13
16   |
17LL | pub fn foo([rest @ ..]: &[i32]) {
18   |             ^^^^ help: if this is intentional, prefix it with an underscore: `_rest`
19
20error: aborting due to 2 previous errors
21