diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/nll/issue-61424.fixed | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/nll/issue-61424.fixed b/src/test/ui/nll/issue-61424.fixed new file mode 100644 index 000000000..63e00c172 --- /dev/null +++ b/src/test/ui/nll/issue-61424.fixed @@ -0,0 +1,9 @@ +// run-rustfix + +#![deny(unused_mut)] + +fn main() { + let x; //~ ERROR: variable does not need to be mutable + x = String::new(); + dbg!(x); +} |