diff options
Diffstat (limited to 'tests/ui/parser/let-binop.fixed')
-rw-r--r-- | tests/ui/parser/let-binop.fixed | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/let-binop.fixed b/tests/ui/parser/let-binop.fixed new file mode 100644 index 000000000..93f7f97b0 --- /dev/null +++ b/tests/ui/parser/let-binop.fixed @@ -0,0 +1,10 @@ +// run-rustfix + +fn main() { + let a: i8 = 1; //~ ERROR can't reassign to an uninitialized variable + let _ = a; + let b = 1; //~ ERROR can't reassign to an uninitialized variable + let _ = b; + let c = 1; //~ ERROR can't reassign to an uninitialized variable + let _ = c; +} |