]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-30371.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-30371.rs
1 // run-pass
2 #![allow(unreachable_code)]
3 #![allow(for_loops_over_fallibles)]
4 #![deny(unused_variables)]
5
6 fn main() {
7     for _ in match return () {
8         () => Some(0),
9     } {}
10 }