summaryrefslogtreecommitdiffstats
path: root/tests/ui/let-else/let-else-allow-unused.stderr
blob: 05b8a9169fb70633b2ae9f8211285ef1a997a0ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: unused variable: `chaenomeles`
  --> $DIR/let-else-allow-unused.rs:14:14
   |
LL |     let Some(chaenomeles) = value else { return };
   |              ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chaenomeles`
   |
note: the lint level is defined here
  --> $DIR/let-else-allow-unused.rs:5:8
   |
LL | #[deny(unused_variables)]
   |        ^^^^^^^^^^^^^^^^

error: aborting due to previous error