You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spurious ununused variable warning for variables used as panic arguments #1582
I expected to see this happen: No warnings about y since it's used in the panic macro.
Instead, this happened:
warning: unused variable: `y`
--> panic_arg.rs:5:14
|
5 | Some(y) => panic!("Value of y is {}", y),
| ^ help: if this is intentional, prefix it with an underscore: `_y`
|
= note: `#[warn(unused_variables)]` on by default
warning: 1 warning emitted
Activity