blob: b3fa9b128c5eb5d9f5398974a9bd4b68be519160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
error[E0425]: cannot find value `bar` in this scope
--> $DIR/tab.rs:14:2
|
14 | bar;
| ^^^ not found in this scope
error[E0308]: mismatched types
--> $DIR/tab.rs:18:2
|
17 | fn foo() {
| - help: try adding a return type: `-> &'static str `
18 | "bar boo"
| ^^^^^^^^^^^ expected (), found reference
|
= note: expected type `()`
found type `&'static str`
error: aborting due to 2 previous errors
|