]> git.lizzy.rs Git - rust.git/commit
Improve E0308: suggest user meant to use byte literal, w/ tests and fix
authorNick Lamb <git@tree.tlrmx.org>
Sat, 14 Jan 2023 14:51:17 +0000 (14:51 +0000)
committerNick Lamb <git@tree.tlrmx.org>
Sat, 14 Jan 2023 21:27:14 +0000 (21:27 +0000)
commit130d02b62e65c5f2a434eaec63c4249e9d508487
tree00831f01020403ed503ca559cd8abeb15a2c1085
parent44a500c8c187b245638684748f54bd6ec67e0b25
Improve E0308: suggest user meant to use byte literal, w/ tests and fix
suggested by Nilstrieb

Co-authored-by: nils <48135649+Nilstrieb@users.noreply.github.com>
compiler/rustc_infer/src/infer/error_reporting/mod.rs
tests/ui/suggestions/type-mismatch-byte-literal.rs [new file with mode: 0644]
tests/ui/suggestions/type-mismatch-byte-literal.stderr [new file with mode: 0644]