blob: c466610bcec82bbea35161072c8a0e9f41d321fb [file] [log] [blame]
error[E0425]: cannot find value `bar` in this scope
--> $DIR/tab.rs:14:2
|
LL | bar; //~ ERROR cannot find value `bar`
| ^^^ not found in this scope
error[E0308]: mismatched types
--> $DIR/tab.rs:18:2
|
LL | fn foo() {
| - help: try adding a return type: `-> &'static str`
LL | "bar boo" //~ ERROR mismatched types
| ^^^^^^^^^^^^^^^^^^^^ expected (), found reference
|
= note: expected type `()`
found type `&'static str`
error: aborting due to 2 previous errors
Some errors occurred: E0308, E0425.
For more information about an error, try `rustc --explain E0308`.