]> git.proxmox.com Git - rustc.git/blame - tests/ui/suggestions/issue-83943.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / suggestions / issue-83943.stderr
CommitLineData
cdc7bbd5
XL
1error[E0308]: `if` and `else` have incompatible types
2 --> $DIR/issue-83943.rs:7:9
3 |
4LL | / if true {
5LL | | "A".to_string()
6 | | --------------- expected because of this
7LL | | } else {
8LL | | "B"
94222f64 9 | | ^^^- help: try using a conversion method: `.to_string()`
cdc7bbd5 10 | | |
9ffffee4 11 | | expected `String`, found `&str`
cdc7bbd5
XL
12LL | | };
13 | |_____- `if` and `else` have incompatible types
14
4b012472 15error: aborting due to 1 previous error
cdc7bbd5
XL
16
17For more information about this error, try `rustc --explain E0308`.