Closed
Description
fn foo(s: &str) { println!("{}", s) }
fn main() {
foo(r#"
This is a raw string
missing a # at the end
"
);
}
produces
error: unterminated raw string
--> src/main.rs:4:9
|
4 | foo(r#"
| _________^
5 | | This is a raw string
6 | | missing a # at the end
7 | | "
8 | | );
9 | | }
| |_^
error: aborting due to previous error
that only mentions "unterminated raw-string". It would be more helpful if it would suggest adding a #
after the last "
to terminate the raw string.