diff options
| author | Michael Gattozzi <mgattozzi@gmail.com> | 2017-01-14 15:25:33 -0500 |
|---|---|---|
| committer | Michael Gattozzi <mgattozzi@gmail.com> | 2017-01-28 17:26:27 -0500 |
| commit | b54f593cffc40e9d07650b36629e60c48da6b11d (patch) | |
| tree | ea53cd7052a5368be161eff34c03ff6abb496e5f /src/test/incremental/thinlto | |
| parent | 0f8a296475d8bc27dfa48ec1053cec8fa2f73673 (diff) | |
| download | rust-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
