rust/tests/ui/nll/issue-61424.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
147 B
Rust
Raw Normal View History

2020-07-02 00:32:12 -05:00
// run-rustfix
#![deny(unused_mut)]
fn main() {
let x; //~ ERROR: variable does not need to be mutable
x = String::new();
dbg!(x);
}