fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
522 B18 linesraw
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 `&str`
14
15error: aborting due to 2 previous errors
16
17Some errors have detailed explanations: E0308, E0425.
18For more information about an error, try `rustc --explain E0308`.