You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rename will error for every invalid character in a format, this will look like this
error: invalid character in format string `#` at position 1
--> $DIR/rename_verify_format.rs:17:30
|
17 | #[shorthand(rename(get = "#pqr_{}", set = "{}#_", try_set = "abc@", get_mut = "trä_pöe"))]
| ^^^^^^^^^
error: invalid character in format string `#` at position 3
--> $DIR/rename_verify_format.rs:17:47
|
17 | #[shorthand(rename(get = "#pqr_{}", set = "{}#_", try_set = "abc@", get_mut = "trä_pöe"))]
| ^^^^^^
error: invalid character in format string `@` at position 4
--> $DIR/rename_verify_format.rs:17:65
|
17 | #[shorthand(rename(get = "#pqr_{}", set = "{}#_", try_set = "abc@", get_mut = "trä_pöe"))]
| ^^^^^^
error: invalid character in format string `ä` at position 3
--> $DIR/rename_verify_format.rs:17:83
|
17 | #[shorthand(rename(get = "#pqr_{}", set = "{}#_", try_set = "abc@", get_mut = "trä_pöe"))]
| ^^^^^^^^^
error: invalid character in format string `ö` at position 6
--> $DIR/rename_verify_format.rs:17:83
|
17 | #[shorthand(rename(get = "#pqr_{}", set = "{}#_", try_set = "abc@", get_mut = "trä_pöe"))]
| ^^^^^^^^^
This could be simplified to
error: invalid character(s) in format string
--> $DIR/rename_verify_format.rs:17:30
|
17 | #[shorthand(rename(get = "#pqr_{}", set = "{}#_", try_set = "abc@", get_mut = "trä_pöe"))]
| ^ ^ ^ ^ ^
| = note: format of a valid identifier; https://doc.rust-lang.org/reference/identifiers.html
The text was updated successfully, but these errors were encountered:
rename will error for every invalid character in a format, this will look like this
This could be simplified to
The text was updated successfully, but these errors were encountered: