unicode code point suggestion for non-ASCII character in byte string literal is incorrect #139226
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
A-Unicode
Area: Unicode
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
If you try to compile this:
You'll get:
This is an unhelpful suggestion, because that's not a correct unicode encoding for 'ñ' (in utf-8, it would be "\xC3\xB1", and in utf-16 it would be "\x00\xF1").
Meta
rustc --version --verbose
: This reproduces on https://play.rust-lang.org with both stable and nightly (although the output is a bit different on nightly)Backtrace
The text was updated successfully, but these errors were encountered: