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
148 B
Rust
Raw Normal View History

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