diff options
Diffstat (limited to 'src/test/parse-fail')
| -rw-r--r-- | src/test/parse-fail/issue-39018.stderr | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/test/parse-fail/issue-39018.stderr b/src/test/parse-fail/issue-39018.stderr deleted file mode 100644 index ee1a32c4c16..00000000000 --- a/src/test/parse-fail/issue-39018.stderr +++ /dev/null @@ -1,28 +0,0 @@ -error[E0369]: binary operation `+` cannot be applied to type `&'static str` - --> src/test/ui/span/issue-39018.rs:2:13 - | -2 | let x = "Hello " + "World!"; - | ^^^^^^^^ - | -note: `+` can't be used to concatenate two `&str` strings - --> src/test/ui/span/issue-39018.rs:2:13 - | -2 | let x = "Hello " + "World!"; - | ^^^^^^^^ -help: to_owned() can be used to create an owned `String` from a string reference. This allows concatenation since the `String` is owned. - | let x = "Hello ".to_owned() + "World!"; - -error[E0369]: binary operation `+` cannot be applied to type `World` - --> src/test/ui/span/issue-39018.rs:7:13 - | -7 | let y = World::Hello + World::Goodbye; - | ^^^^^^^^^^^^ - | -note: an implementation of `std::ops::Add` might be missing for `World` - --> src/test/ui/span/issue-39018.rs:7:13 - | -7 | let y = World::Hello + World::Goodbye; - | ^^^^^^^^^^^^ - -error: aborting due to 2 previous errors - |
