]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/raw/raw-literal-keywords.stderr
update comment to explain the importance of this check more clearly
[rust.git] / src / test / ui / parser / raw / raw-literal-keywords.stderr
1 error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found keyword `true`
2   --> $DIR/raw-literal-keywords.rs:2:10
3    |
4 LL |     r#if true { }
5    |          ^^^^ expected one of 8 possible tokens
6
7 error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `Test`
8   --> $DIR/raw-literal-keywords.rs:6:14
9    |
10 LL |     r#struct Test;
11    |              ^^^^ expected one of 8 possible tokens
12
13 error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `Test`
14   --> $DIR/raw-literal-keywords.rs:10:13
15    |
16 LL |     r#union Test;
17    |             ^^^^ expected one of 8 possible tokens
18
19 error[E0425]: cannot find value `if` in this scope
20   --> $DIR/raw-literal-keywords.rs:14:13
21    |
22 LL |     let _ = r#if;
23    |             ^^^^ not found in this scope
24
25 error[E0425]: cannot find value `struct` in this scope
26   --> $DIR/raw-literal-keywords.rs:18:13
27    |
28 LL |     let _ = r#struct;
29    |             ^^^^^^^^ not found in this scope
30
31 error[E0425]: cannot find value `union` in this scope
32   --> $DIR/raw-literal-keywords.rs:22:13
33    |
34 LL |     let _ = r#union;
35    |             ^^^^^^^ not found in this scope
36
37 error: aborting due to 6 previous errors
38
39 For more information about this error, try `rustc --explain E0425`.