fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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