diff options
Diffstat (limited to 'src/test/ui/suggestions/suggest-let-for-assignment.rs')
-rw-r--r-- | src/test/ui/suggestions/suggest-let-for-assignment.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/suggestions/suggest-let-for-assignment.rs b/src/test/ui/suggestions/suggest-let-for-assignment.rs deleted file mode 100644 index 67705fe06..000000000 --- a/src/test/ui/suggestions/suggest-let-for-assignment.rs +++ /dev/null @@ -1,17 +0,0 @@ -// run-rustfix - -fn main() { - demo = 1; //~ ERROR cannot find value `demo` in this scope - dbg!(demo); //~ ERROR cannot find value `demo` in this scope - - x = "x"; //~ ERROR cannot find value `x` in this scope - println!("x: {}", x); //~ ERROR cannot find value `x` in this scope - - if x == "x" { - //~^ ERROR cannot find value `x` in this scope - println!("x is 1"); - } - - y = 1 + 2; //~ ERROR cannot find value `y` in this scope - println!("y: {}", y); //~ ERROR cannot find value `y` in this scope -} |