fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.7 KiB44 linesraw
1error: invalid format string: raw identifiers are not supported
2  --> $DIR/raw-idents.rs:8:22
3   |
4LL |     println!("It is {r#type}");
5   |                      --^^^^
6   |                      |
7   |                      raw identifier used here in format string
8   |                      help: remove the `r#`
9   |
10   = note: identifiers in format strings can be keywords and don't need to be prefixed with `r#`
11
12error: invalid format string: raw identifiers are not supported
13  --> $DIR/raw-idents.rs:9:31
14   |
15LL |     println!(r##"It still is {r#type}"##);
16   |                               --^^^^
17   |                               |
18   |                               raw identifier used here in format string
19   |                               help: remove the `r#`
20   |
21   = note: identifiers in format strings can be keywords and don't need to be prefixed with `r#`
22
23error: invalid format string: raw identifiers are not supported
24  --> $DIR/raw-idents.rs:10:14
25   |
26LL |     println!(concat!("{r#", "type}"));
27   |              ^^^^^^^^^^^^^^^^^^^^^^^ raw identifier used here in format string
28   |
29   = note: identifiers in format strings can be keywords and don't need to be prefixed with `r#`
30   = note: this error originates in the macro `concat` (in Nightly builds, run with -Z macro-backtrace for more info)
31
32error: invalid format string: raw identifiers are not supported
33  --> $DIR/raw-idents.rs:11:16
34   |
35LL |     println!("{\x72\x23type:?}");
36   |                --------^^^^
37   |                |
38   |                raw identifier used here in format string
39   |                help: remove the `r#`
40   |
41   = note: identifiers in format strings can be keywords and don't need to be prefixed with `r#`
42
43error: aborting due to 4 previous errors
44