]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/removed-syntax-field-let.stderr
Rollup merge of #65948 - danielhenrymantilla:doc/maybe_uninit_ref_mut, r=RalfJung
[rust.git] / src / test / ui / parser / removed-syntax-field-let.stderr
1 error: expected identifier, found keyword `let`
2   --> $DIR/removed-syntax-field-let.rs:2:5
3    |
4 LL |     let foo: (),
5    |     ^^^ expected identifier, found keyword
6    |
7 help: you can escape reserved keywords to use them as identifiers
8    |
9 LL |     r#let foo: (),
10    |     ^^^^^
11
12 error: expected `:`, found `foo`
13   --> $DIR/removed-syntax-field-let.rs:2:9
14    |
15 LL |     let foo: (),
16    |         ^^^ expected `:`
17
18 error: aborting due to 2 previous errors
19