forked from gentoo-utils/gentoo-utils
Merge commit '6eba9cd92c295c5389944f6adda1f1e83b2cb008' as 'subprojects/thiserror'
This commit is contained in:
21
subprojects/thiserror/tests/ui/raw-identifier.stderr
Normal file
21
subprojects/thiserror/tests/ui/raw-identifier.stderr
Normal file
@@ -0,0 +1,21 @@
|
||||
error: invalid format string: raw identifiers are not supported
|
||||
--> tests/ui/raw-identifier.rs:4:18
|
||||
|
|
||||
4 | #[error("error: {r#fn}")]
|
||||
| --^^
|
||||
| |
|
||||
| raw identifier used here in format string
|
||||
| help: remove the `r#`
|
||||
|
|
||||
= note: identifiers in format strings can be keywords and don't need to be prefixed with `r#`
|
||||
|
||||
error: invalid format string: raw identifiers are not supported
|
||||
--> tests/ui/raw-identifier.rs:11:30
|
||||
|
|
||||
11 | let _ = format!("error: {r#fn}");
|
||||
| --^^
|
||||
| |
|
||||
| raw identifier used here in format string
|
||||
| help: remove the `r#`
|
||||
|
|
||||
= note: identifiers in format strings can be keywords and don't need to be prefixed with `r#`
|
||||
Reference in New Issue
Block a user