2 // if access_level != "user" { // Check if admin
3 //~^ ERROR unicode codepoint changing visible direction of text present in comment
4 println!("us\u{202B}e\u{202A}r");
5 println!("{:?}", r#"us\u{202B}e\u{202A}r"#);
6 println!("{:?}", b"us\u{202B}e\u{202A}r");
7 //~^ ERROR unicode escape in byte string
8 //~| ERROR unicode escape in byte string
9 println!("{:?}", br##"us\u{202B}e\u{202A}r"##);
11 println!("{:?}", "/* } if isAdmin begin admins only ");
12 //~^ ERROR unicode codepoint changing visible direction of text present in literal
14 println!("{:?}", r##"/* } if isAdmin begin admins only "##);
15 //~^ ERROR unicode codepoint changing visible direction of text present in literal
16 println!("{:?}", b"/* } if isAdmin begin admins only ");
17 //~^ ERROR non-ASCII character in byte constant
18 //~| ERROR non-ASCII character in byte constant
19 //~| ERROR non-ASCII character in byte constant
20 //~| ERROR non-ASCII character in byte constant
21 println!("{:?}", br##"/* } if isAdmin begin admins only "##);
22 //~^ ERROR raw byte string must be ASCII
23 //~| ERROR raw byte string must be ASCII
24 //~| ERROR raw byte string must be ASCII
25 //~| ERROR raw byte string must be ASCII
26 println!("{:?}", '');
27 //~^ ERROR unicode codepoint changing visible direction of text present in literal
30 //"/* } if isAdmin begin admins only */"
31 //~^ ERROR unicode codepoint changing visible direction of text present in comment
33 /** ''); */fn foo() {}
34 //~^ ERROR unicode codepoint changing visible direction of text present in doc comment
39 //~^^^ ERROR unicode codepoint changing visible direction of text present in doc comment