about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorMichael Gattozzi <mgattozzi@gmail.com>2017-01-14 15:25:33 -0500
committerMichael Gattozzi <mgattozzi@gmail.com>2017-01-28 17:26:27 -0500
commitb54f593cffc40e9d07650b36629e60c48da6b11d (patch)
treeea53cd7052a5368be161eff34c03ff6abb496e5f /src/test/incremental/thinlto
parent0f8a296475d8bc27dfa48ec1053cec8fa2f73673 (diff)
downloadrust-b54f593cffc40e9d07650b36629e60c48da6b11d.tar.gz
rust-b54f593cffc40e9d07650b36629e60c48da6b11d.zip
Add clearer error message using `&str + &str`
This is the first part of #39018. One of the common things for new users
coming from more dynamic languages like JavaScript, Python or Ruby is to
use `+` to concatenate strings. However, this doesn't work that way in
Rust unless the first type is a `String`. This commit adds a check for
this use case and outputs a new error as well as a suggestion to guide
the user towards the desired behavior. It also adds a new test case to
test the output of the error.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions