]> git.lizzy.rs Git - rust.git/blob - tests/ui/octal_escapes.stderr
`assertions_on_result_states` fix suggestion when `assert!` not in a statement
[rust.git] / tests / ui / octal_escapes.stderr
1 error: octal-looking escape in string literal
2   --> $DIR/octal_escapes.rs:4:17
3    |
4 LL |     let _bad1 = "/033[0m";
5    |                 ^^^^^^^^^
6    |
7    = note: `-D clippy::octal-escapes` implied by `-D warnings`
8    = help: octal escapes are not supported, `/0` is always a null character
9 help: if an octal escape was intended, use the hexadecimal representation instead
10    |
11 LL |     let _bad1 = "/x1b[0m";
12    |                 ~~~~~~~~~
13 help: if the null character is intended, disambiguate using
14    |
15 LL |     let _bad1 = "/x0033[0m";
16    |                 ~~~~~~~~~~~
17
18 error: octal-looking escape in byte string literal
19   --> $DIR/octal_escapes.rs:5:17
20    |
21 LL |     let _bad2 = b"/033[0m";
22    |                 ^^^^^^^^^^
23    |
24    = help: octal escapes are not supported, `/0` is always a null byte
25 help: if an octal escape was intended, use the hexadecimal representation instead
26    |
27 LL |     let _bad2 = b"/x1b[0m";
28    |                 ~~~~~~~~~~
29 help: if the null byte is intended, disambiguate using
30    |
31 LL |     let _bad2 = b"/x0033[0m";
32    |                 ~~~~~~~~~~~~
33
34 error: octal-looking escape in string literal
35   --> $DIR/octal_escapes.rs:6:17
36    |
37 LL |     let _bad3 = "//033[0m";
38    |                 ^^^^^^^^^^^
39    |
40    = help: octal escapes are not supported, `/0` is always a null character
41 help: if an octal escape was intended, use the hexadecimal representation instead
42    |
43 LL |     let _bad3 = "//x1b[0m";
44    |                 ~~~~~~~~~~~
45 help: if the null character is intended, disambiguate using
46    |
47 LL |     let _bad3 = "//x0033[0m";
48    |                 ~~~~~~~~~~~~~
49
50 error: octal-looking escape in string literal
51   --> $DIR/octal_escapes.rs:8:17
52    |
53 LL |     let _bad4 = "/01234567";
54    |                 ^^^^^^^^^^^
55    |
56    = help: octal escapes are not supported, `/0` is always a null character
57 help: if an octal escape was intended, use the hexadecimal representation instead
58    |
59 LL |     let _bad4 = "/x0a34567";
60    |                 ~~~~~~~~~~~
61 help: if the null character is intended, disambiguate using
62    |
63 LL |     let _bad4 = "/x001234567";
64    |                 ~~~~~~~~~~~~~
65
66 error: octal-looking escape in string literal
67   --> $DIR/octal_escapes.rs:10:17
68    |
69 LL |     let _bad6 = "Text-/055/077-MoreText";
70    |                 ^^^^^^^^^^^^^^^^^^^^^^^^
71    |
72    = help: octal escapes are not supported, `/0` is always a null character
73 help: if an octal escape was intended, use the hexadecimal representation instead
74    |
75 LL |     let _bad6 = "Text-/x2d/x3f-MoreText";
76    |                 ~~~~~~~~~~~~~~~~~~~~~~~~
77 help: if the null character is intended, disambiguate using
78    |
79 LL |     let _bad6 = "Text-/x0055/x0077-MoreText";
80    |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81
82 error: octal-looking escape in string literal
83   --> $DIR/octal_escapes.rs:11:17
84    |
85 LL |     let _bad7 = "EvenMoreText-/01/02-ShortEscapes";
86    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87    |
88    = help: octal escapes are not supported, `/0` is always a null character
89 help: if an octal escape was intended, use the hexadecimal representation instead
90    |
91 LL |     let _bad7 = "EvenMoreText-/x01/x02-ShortEscapes";
92    |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
93 help: if the null character is intended, disambiguate using
94    |
95 LL |     let _bad7 = "EvenMoreText-/x001/x002-ShortEscapes";
96    |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
97
98 error: octal-looking escape in string literal
99   --> $DIR/octal_escapes.rs:12:17
100    |
101 LL |     let _bad8 = "锈/01锈";
102    |                 ^^^^^^^^^
103    |
104    = help: octal escapes are not supported, `/0` is always a null character
105 help: if an octal escape was intended, use the hexadecimal representation instead
106    |
107 LL |     let _bad8 = "锈/x01锈";
108    |                 ~~~~~~~~~~
109 help: if the null character is intended, disambiguate using
110    |
111 LL |     let _bad8 = "锈/x001锈";
112    |                 ~~~~~~~~~~~
113
114 error: octal-looking escape in string literal
115   --> $DIR/octal_escapes.rs:13:17
116    |
117 LL |     let _bad9 = "锈/011锈";
118    |                 ^^^^^^^^^^
119    |
120    = help: octal escapes are not supported, `/0` is always a null character
121 help: if an octal escape was intended, use the hexadecimal representation instead
122    |
123 LL |     let _bad9 = "锈/x09锈";
124    |                 ~~~~~~~~~~
125 help: if the null character is intended, disambiguate using
126    |
127 LL |     let _bad9 = "锈/x0011锈";
128    |                 ~~~~~~~~~~~~
129
130 error: aborting due to 8 previous errors
131