1 error: unicode escape in byte string
2 --> $DIR/unicode-control-codepoints.rs:6:26
4 LL | println!("{:?}", b"us\u{202B}e\u{202A}r");
5 | ^^^^^^^^ unicode escape in byte string
7 = help: unicode escape sequences cannot be used as a byte or in a byte string
9 error: unicode escape in byte string
10 --> $DIR/unicode-control-codepoints.rs:6:35
12 LL | println!("{:?}", b"us\u{202B}e\u{202A}r");
13 | ^^^^^^^^ unicode escape in byte string
15 = help: unicode escape sequences cannot be used as a byte or in a byte string
17 error: non-ASCII character in byte constant
18 --> $DIR/unicode-control-codepoints.rs:16:26
20 LL | println!("{:?}", b"/* } if isAdmin begin admins only ");
21 | ^ byte constant must be ASCII but is '\u{202e}'
23 help: if you meant to use the UTF-8 encoding of '\u{202e}', use \xHH escapes
25 LL | println!("{:?}", b"/*\xE2\x80\xAE } if isAdmin begin admins only ");
28 error: non-ASCII character in byte constant
29 --> $DIR/unicode-control-codepoints.rs:16:30
31 LL | println!("{:?}", b"/* } if isAdmin begin admins only ");
32 | ^ byte constant must be ASCII but is '\u{2066}'
34 help: if you meant to use the UTF-8 encoding of '\u{2066}', use \xHH escapes
36 LL | println!("{:?}", b"/* } \xE2\x81\xA6if isAdmin begin admins only ");
39 error: non-ASCII character in byte constant
40 --> $DIR/unicode-control-codepoints.rs:16:41
42 LL | println!("{:?}", b"/* } if isAdmin begin admins only ");
43 | ^ byte constant must be ASCII but is '\u{2069}'
45 help: if you meant to use the UTF-8 encoding of '\u{2069}', use \xHH escapes
47 LL | println!("{:?}", b"/* } if isAdmin\xE2\x81\xA9 begin admins only ");
50 error: non-ASCII character in byte constant
51 --> $DIR/unicode-control-codepoints.rs:16:43
53 LL | println!("{:?}", b"/* } if isAdmin begin admins only ");
54 | ^ byte constant must be ASCII but is '\u{2066}'
56 help: if you meant to use the UTF-8 encoding of '\u{2066}', use \xHH escapes
58 LL | println!("{:?}", b"/* } if isAdmin \xE2\x81\xA6 begin admins only ");
61 error: raw byte string must be ASCII
62 --> $DIR/unicode-control-codepoints.rs:21:29
64 LL | println!("{:?}", br##"/* } if isAdmin begin admins only "##);
65 | ^ must be ASCII but is '\u{202e}'
67 error: raw byte string must be ASCII
68 --> $DIR/unicode-control-codepoints.rs:21:33
70 LL | println!("{:?}", br##"/* } if isAdmin begin admins only "##);
71 | ^ must be ASCII but is '\u{2066}'
73 error: raw byte string must be ASCII
74 --> $DIR/unicode-control-codepoints.rs:21:44
76 LL | println!("{:?}", br##"/* } if isAdmin begin admins only "##);
77 | ^ must be ASCII but is '\u{2069}'
79 error: raw byte string must be ASCII
80 --> $DIR/unicode-control-codepoints.rs:21:46
82 LL | println!("{:?}", br##"/* } if isAdmin begin admins only "##);
83 | ^ must be ASCII but is '\u{2066}'
85 error: unicode codepoint changing visible direction of text present in comment
86 --> $DIR/unicode-control-codepoints.rs:2:5
88 LL | // if access_level != "user" { // Check if admin
89 | ^^^^^^^^^^^^^^^^^^^^^^^^^--^^^^^^^^^^^^^^^^^^^^^
93 | this comment contains invisible unicode text flow control codepoints
95 = note: `#[deny(text_direction_codepoint_in_comment)]` on by default
96 = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
97 = help: if their presence wasn't intentional, you can remove them
99 error: unicode codepoint changing visible direction of text present in comment
100 --> $DIR/unicode-control-codepoints.rs:30:1
102 LL | //"/* } if isAdmin begin admins only */"
103 | ^^^^^-^^-^^^^^^^^^--^^^^^^^^^^^^^^^^^^^^^
109 | this comment contains invisible unicode text flow control codepoints
111 = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
112 = help: if their presence wasn't intentional, you can remove them
114 error: unicode codepoint changing visible direction of text present in literal
115 --> $DIR/unicode-control-codepoints.rs:11:22
117 LL | println!("{:?}", "/* } if isAdmin begin admins only ");
118 | ^^^-^^-^^^^^^^^^--^^^^^^^^^^^^^^^^^^^
124 | this literal contains invisible unicode text flow control codepoints
126 = note: `#[deny(text_direction_codepoint_in_literal)]` on by default
127 = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
128 = help: if their presence wasn't intentional, you can remove them
129 help: if you want to keep them but make them visible in your source code, you can escape them
131 LL | println!("{:?}", "/*\u{202e} } \u{2066}if isAdmin\u{2069} \u{2066} begin admins only ");
132 | ~~~~~~~~ ~~~~~~~~ ~~~~~~~~ ~~~~~~~~
134 error: unicode codepoint changing visible direction of text present in literal
135 --> $DIR/unicode-control-codepoints.rs:14:22
137 LL | println!("{:?}", r##"/* } if isAdmin begin admins only "##);
138 | ^^^^^^-^^-^^^^^^^^^--^^^^^^^^^^^^^^^^^^^^^
144 | this literal contains invisible unicode text flow control codepoints
146 = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
147 = help: if their presence wasn't intentional, you can remove them
148 help: if you want to keep them but make them visible in your source code, you can escape them
150 LL | println!("{:?}", r##"/*\u{202e} } \u{2066}if isAdmin\u{2069} \u{2066} begin admins only "##);
151 | ~~~~~~~~ ~~~~~~~~ ~~~~~~~~ ~~~~~~~~
153 error: unicode codepoint changing visible direction of text present in literal
154 --> $DIR/unicode-control-codepoints.rs:26:22
156 LL | println!("{:?}", '');
160 | this literal contains an invisible unicode text flow control codepoint
162 = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
163 = help: if their presence wasn't intentional, you can remove them
164 help: if you want to keep them but make them visible in your source code, you can escape them
166 LL | println!("{:?}", '\u{202e}');
169 error: unicode codepoint changing visible direction of text present in doc comment
170 --> $DIR/unicode-control-codepoints.rs:33:1
172 LL | /** ''); */fn foo() {}
173 | ^^^^^^^^^^^^ this doc comment contains an invisible unicode text flow control codepoint
175 = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
176 = note: if their presence wasn't intentional, you can remove them
177 = note: if you want to keep them but make them visible in your source code, you can escape them: '\u{202e}'
179 error: unicode codepoint changing visible direction of text present in doc comment
180 --> $DIR/unicode-control-codepoints.rs:36:1
184 LL | | * ''); */fn bar() {}
185 | |___________^ this doc comment contains an invisible unicode text flow control codepoint
187 = note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
188 = note: if their presence wasn't intentional, you can remove them
189 = note: if you want to keep them but make them visible in your source code, you can escape them: '\u{202e}'
191 error: aborting due to 17 previous errors