blob: 619d7d1e6e8b72e11970ff4d014cfd595f3b5390 [file] [edit]
error: unknown character escape: `?`
--> $DIR/foreign-escapes.rs:11:35
|
LL | pub const QUESTION_MARK: char = '\?';
| ^ unknown character escape
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL - pub const QUESTION_MARK: char = '\?';
LL + pub const QUESTION_MARK: char = r"\?";
|
help: if you meant to write a literal question mark, don't escape the character
|
LL - pub const QUESTION_MARK: char = '\?';
LL + pub const QUESTION_MARK: char = '?';
|
error: unknown character escape: `a`
--> $DIR/foreign-escapes.rs:12:34
|
LL | pub const AUDIBLE_BELL: char = '\a';
| ^ unknown character escape
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL - pub const AUDIBLE_BELL: char = '\a';
LL + pub const AUDIBLE_BELL: char = r"\a";
|
help: if you meant to write an audible bell, use a hex escape
|
LL - pub const AUDIBLE_BELL: char = '\a';
LL + pub const AUDIBLE_BELL: char = '\x07';
|
error: unknown character escape: `b`
--> $DIR/foreign-escapes.rs:13:31
|
LL | pub const BACKSPACE: char = '\b';
| ^ unknown character escape
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL - pub const BACKSPACE: char = '\b';
LL + pub const BACKSPACE: char = r"\b";
|
help: if you meant to write a backspace, use a hex escape
|
LL - pub const BACKSPACE: char = '\b';
LL + pub const BACKSPACE: char = '\x08';
|
error: unknown character escape: `f`
--> $DIR/foreign-escapes.rs:14:31
|
LL | pub const FORM_FEED: char = '\f';
| ^ unknown character escape
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL - pub const FORM_FEED: char = '\f';
LL + pub const FORM_FEED: char = r"\f";
|
help: if you meant to write a form feed, use a hex escape
|
LL - pub const FORM_FEED: char = '\f';
LL + pub const FORM_FEED: char = '\x0C';
|
error: unknown character escape: `v`
--> $DIR/foreign-escapes.rs:15:34
|
LL | pub const VERTICAL_TAB: char = '\v';
| ^ unknown character escape
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL - pub const VERTICAL_TAB: char = '\v';
LL + pub const VERTICAL_TAB: char = r"\v";
|
help: if you meant to write a vertical tab, use a hex escape
|
LL - pub const VERTICAL_TAB: char = '\v';
LL + pub const VERTICAL_TAB: char = '\x0B';
|
error: unknown character escape: `1`
--> $DIR/foreign-escapes.rs:16:27
|
LL | pub const OCTAL: char = '\1';
| ^ unknown character escape
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
= help: if you meant to write an ASCII control code, use a `\xNN` hex escape
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL - pub const OCTAL: char = '\1';
LL + pub const OCTAL: char = r"\1";
|
error: unknown character escape: `1`
--> $DIR/foreign-escapes.rs:17:37
|
LL | pub const OCTAL_TWO_DIGIT: char = '\12';
| ^ unknown character escape
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
= help: if you meant to write an ASCII control code, use a `\xNN` hex escape
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL - pub const OCTAL_TWO_DIGIT: char = '\12';
LL + pub const OCTAL_TWO_DIGIT: char = r"\12";
|
error: unknown character escape: `1`
--> $DIR/foreign-escapes.rs:18:39
|
LL | pub const OCTAL_THREE_DIGIT: char = '\12';
| ^ unknown character escape
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
= help: if you meant to write an ASCII control code, use a `\xNN` hex escape
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL - pub const OCTAL_THREE_DIGIT: char = '\12';
LL + pub const OCTAL_THREE_DIGIT: char = r"\12";
|
error: unknown character escape: `9`
--> $DIR/foreign-escapes.rs:19:40
|
LL | pub const OCTAL_OUT_OF_RANGE: char = '\9';
| ^ unknown character escape
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL - pub const OCTAL_OUT_OF_RANGE: char = '\9';
LL + pub const OCTAL_OUT_OF_RANGE: char = r"\9";
|
error: unknown character escape: `e`
--> $DIR/foreign-escapes.rs:23:28
|
LL | pub const ESCAPE: char = '\e';
| ^ unknown character escape
|
= help: for more information, visit <https://doc.rust-lang.org/reference/tokens.html#literals>
help: if you meant to write a literal backslash (perhaps escaping in a regular expression), consider a raw string literal
|
LL - pub const ESCAPE: char = '\e';
LL + pub const ESCAPE: char = r"\e";
|
help: if you meant to write an ANSI escape sequence, use a hex escape
|
LL - pub const ESCAPE: char = '\e';
LL + pub const ESCAPE: char = '\x1B';
|
error: aborting due to 10 previous errors