]>
git.proxmox.com Git - rustc.git/blame - src/test/ui/closures/2229_closure_analysis/run_pass/drop_then_use_fake_reads.rs
Commit | Line | Data |
136023e0 XL |
1 | // edition:2021 |
2 | // check-pass |
6a06907d XL |
3 | #![feature(rustc_attrs)] |
4 | |
5 | fn main() { |
6 | let mut x = 1; |
7 | let c = || { |
8 | drop(&mut x); |
9 | match x { _ => () } |
10 | }; |
11 | } |