about summary refs log tree commit diff
path: root/src/test/ui/span/issue-39018.rs
AgeCommit message (Collapse)AuthorLines
2018-12-25Remove licensesMark Rousskov-10/+0
2018-02-20Handle custom diagnostic for `&str + String`Esteban Küber-0/+3
2017-11-24Merge cfail and ui tests into ui testsOliver Schneider-0/+2
2017-01-28Add clearer error message using `&str + &str`Michael Gattozzi-0/+23
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.