]> git.proxmox.com Git - rustc.git/blame - src/test/ui/block-result/issue-13428.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / block-result / issue-13428.stderr
CommitLineData
041b39d2 1error[E0308]: mismatched types
0731742a 2 --> $DIR/issue-13428.rs:3:13
041b39d2 3 |
532ac7d7 4LL | fn foo() -> String {
1b1a35ee 5 | --- ^^^^^^ expected struct `String`, found `()`
0731742a 6 | |
416331ca 7 | implicitly returns `()` as its body has no tail or `return` expression
0731742a
XL
8...
9LL | ;
10 | - help: consider removing this semicolon
041b39d2
XL
11
12error[E0308]: mismatched types
0731742a 13 --> $DIR/issue-13428.rs:11:13
041b39d2 14 |
532ac7d7 15LL | fn bar() -> String {
1b1a35ee 16 | --- ^^^^^^ expected struct `String`, found `()`
0731742a 17 | |
416331ca 18 | implicitly returns `()` as its body has no tail or `return` expression
0731742a
XL
19LL | "foobar".to_string()
20LL | ;
21 | - help: consider removing this semicolon
041b39d2
XL
22
23error: aborting due to 2 previous errors
24
0531ce1d 25For more information about this error, try `rustc --explain E0308`.