rust/tests/ui/parser/removed-syntax
Esteban Küber bde2dfb127 Detect more cases of = to : typo
When a `Local` is fully parsed, but not followed by a `;`, keep the `:` span
arround and mention it. If the type could continue being parsed as an
expression, suggest replacing the `:` with a `=`.

```
error: expected one of `!`, `+`, `->`, `::`, `;`, or `=`, found `.`
 --> file.rs:2:32
  |
2 |     let _: std::env::temp_dir().join("foo");
  |          -                     ^ expected one of `!`, `+`, `->`, `::`, `;`, or `=`
  |          |
  |          while parsing the type for `_`
  |          help: use `=` if you meant to assign
```

Fix #119665.
2024-03-01 02:03:00 +00:00
..
removed-syntax-box.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
removed-syntax-box.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
removed-syntax-box.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-closure-lifetime.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-closure-lifetime.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-enum-newtype.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-enum-newtype.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-field-let-2.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-field-let-2.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-field-let.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-field-let.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-field-semicolon.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-field-semicolon.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-fixed-vec.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-fixed-vec.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-fn-sigil.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-fn-sigil.stderr Detect more cases of = to : typo 2024-03-01 02:03:00 +00:00
removed-syntax-mode.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-mode.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-mut-vec-expr.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-mut-vec-expr.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-mut-vec-ty.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-mut-vec-ty.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-ptr-lifetime.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-ptr-lifetime.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-record.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-record.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-static-fn.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-static-fn.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-uniq-mut-expr.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-uniq-mut-expr.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-uniq-mut-ty.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-uniq-mut-ty.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-with-1.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-with-1.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-with-2.rs Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00
removed-syntax-with-2.stderr Move removed-syntax tests to their own directory 2024-01-17 22:17:44 +00:00