fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0425]: cannot find value `bar` in this scope 2 --> $DIR/tab.rs:4:2 3 | 4LL | bar; 5 | ^^^ not found in this scope 6 7error[E0308]: mismatched types 8 --> $DIR/tab.rs:8:2 9 | 10LL | fn foo() { 11 | - help: try adding a return type: `-> &'static str` 12LL | "bar boo" 13 | ^^^^^^^^^^^^^^^^^^^^ expected (), found reference 14 | 15 = note: expected type `()` 16 found type `&'static str` 17 18error: aborting due to 2 previous errors 19 20Some errors have detailed explanations: E0308, E0425. 21For more information about an error, try `rustc --explain E0308`.