Poor error when passing "string" instead of b"string" #44307
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-type-system
Area: Type system
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Playground: https://play.rust-lang.org/?gist=935daee28b05c2afcdf61423fdfb40f8&version=stable
This includes the error:
Whereas it could be much better suggesting the user to type
b"hello"
instead of supplying"hello".as_bytes()
.The text was updated successfully, but these errors were encountered: