]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-22599.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-22599.rs
1 #![deny(unused_variables)]
2
3 fn f(_: i32) {}
4
5 fn main() {
6     let mut v = 0;
7     f(v);
8     v = match 0 { a => 0 }; //~ ERROR: unused variable: `a`
9     f(v);
10 }