about summary refs log tree commit diff
path: root/src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-26 17:55:15 +0200
committerGitHub <noreply@github.com>2019-09-26 17:55:15 +0200
commit95ea4a1a8a0c8786fdb0d6c63669ece927820ad3 (patch)
treed65d373ce0b6b6f59811d74261374c0e494df878 /src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs
parent01303936f37ef494bfe11012645ff7ca37606fdf (diff)
parenta048447ff42c0e7c793aa33c92aa8daf61576b71 (diff)
downloadrust-95ea4a1a8a0c8786fdb0d6c63669ece927820ad3.tar.gz
rust-95ea4a1a8a0c8786fdb0d6c63669ece927820ad3.zip
Rollup merge of #64783 - onehr:onehrxn, r=varkor
Fix issue #64732

Based on issue #64732, when creating a byte literal with single quotes,
the suggestion message would indicate that you meant to write a `str` literal,
but we actually meant to write a byte string literal.

So I changed the unescape_error_reporting.rs to decide whether to print out
"if you meant to write a `str` literal, use double quotes",
or "if you meant to write a byte string literal, use double quotes".

Fixes #64732.
Diffstat (limited to 'src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs')
0 files changed, 0 insertions, 0 deletions