summaryrefslogtreecommitdiff
path: root/compiler/rustc_error_messages/locales/en-US/parser.ftl
blob: 98836bbc485b9f649c784bc8023d618c314d3d6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
parser-struct-literal-body-without-path =
    struct literal body without path
    .suggestion = you might have forgotten to add the struct literal inside the block

parser-maybe-report-ambiguous-plus =
    ambiguous `+` in a type
    .suggestion = use parentheses to disambiguate

parser-maybe-recover-from-bad-type-plus =
    expected a path on the left-hand side of `+`, not `{$ty}`

parser-add-paren = try adding parentheses

parser-forgot-paren = perhaps you forgot parentheses?

parser-expect-path = expected a path

parser-maybe-recover-from-bad-qpath-stage-2 =
    missing angle brackets in associated item path
    .suggestion = try: `{$ty}`

parser-incorrect-semicolon =
    expected item, found `;`
    .suggestion = remove this semicolon
    .help = {$name} declarations are not followed by a semicolon

parser-incorrect-use-of-await =
    incorrect use of `await`
    .suggestion = `await` is not a method call, remove the parentheses


parser-incorrect-await =
    incorrect use of `await`
    .suggestion = `await` is a postfix operation