LL | fn foo() {
| - help: try adding a return type: `-> &'static str`
LL | "bar boo"
- | ^^^^^^^^^^^^^^^^^^^^ expected (), found reference
- |
- = note: expected type `()`
- found type `&'static str`
+ | ^^^^^^^^^^^^^^^^^^^^ expected (), found &str
error: aborting due to 2 previous errors
-Some errors occurred: E0308, E0425.
+Some errors have detailed explanations: E0308, E0425.
For more information about an error, try `rustc --explain E0308`.