Point to where missing return type should go
This commit is contained in:
parent
eea26141ec
commit
137b6d0b01
34 changed files with 86 additions and 71 deletions
|
@ -8,7 +8,7 @@ error[E0308]: mismatched types
|
|||
--> $DIR/tab.rs:8:2
|
||||
|
|
||||
LL | fn foo() {
|
||||
| - help: try adding a return type: `-> &'static str`
|
||||
| - help: try adding a return type: `-> &'static str`
|
||||
LL | "bar boo"
|
||||
| ^^^^^^^^^^^^^^^^^^^^ expected `()`, found `&str`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue