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