]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-61424.rs
Rollup merge of #103146 - joboet:cleanup_pthread_condvar, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / issue-61424.rs
1 // run-rustfix
2
3 #![deny(unused_mut)]
4
5 fn main() {
6     let mut x; //~ ERROR: variable does not need to be mutable
7     x = String::new();
8     dbg!(x);
9 }