-
Couldn't load subscription status.
- Fork 13.9k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.
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 errorthat only mentions "unterminated raw-string". It would be more helpful if it would suggest adding a # after the last " to terminate the raw string.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.