@@ -187,5 +187,41 @@ LL - r#"hello world"#;
187187LL + r"hello world";
188188 |
189189
190- error: aborting due to 15 previous errors
190+ error: unnecessary hashes around raw string literal
191+ --> tests/ui/needless_raw_string_hashes.rs:30:14
192+ |
193+ LL | println!(r#"SELECT * FROM posts"#);
194+ | ^^^^^^^^^^^^^^^^^^^^^^^^
195+ |
196+ help: remove all the hashes around the string literal
197+ |
198+ LL - println!(r#"SELECT * FROM posts"#);
199+ LL + println!(r"SELECT * FROM posts");
200+ |
201+
202+ error: unnecessary hashes around raw string literal
203+ --> tests/ui/needless_raw_string_hashes.rs:31:14
204+ |
205+ LL | println!(r##"SELECT * FROM "posts""##);
206+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207+ |
208+ help: remove one hash from both sides of the string literal
209+ |
210+ LL - println!(r##"SELECT * FROM "posts""##);
211+ LL + println!(r#"SELECT * FROM "posts""#);
212+ |
213+
214+ error: unnecessary hashes around raw string literal
215+ --> tests/ui/needless_raw_string_hashes.rs:32:14
216+ |
217+ LL | println!(r##"SELECT * FROM "posts""##);
218+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
219+ |
220+ help: remove one hash from both sides of the string literal
221+ |
222+ LL - println!(r##"SELECT * FROM "posts""##);
223+ LL + println!(r#"SELECT * FROM "posts""#);
224+ |
225+
226+ error: aborting due to 18 previous errors
191227
0 commit comments