2017-01-12 01:18:08 +03:00
|
|
|
error[E0425]: cannot find value `bar` in this scope
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/tab.rs:4:2
|
2016-07-13 17:53:42 -04:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | bar;
|
2017-11-12 22:06:00 -08:00
|
|
|
| ^^^ not found in this scope
|
2016-07-13 17:53:42 -04:00
|
|
|
|
2017-09-07 08:47:13 +02:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/tab.rs:8:2
|
2017-09-07 08:47:13 +02:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn foo() {
|
2023-09-30 19:29:41 +00:00
|
|
|
| - help: try adding a return type: `-> &'static str`
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | "bar boo"
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ expected `()`, found `&str`
|
2017-09-07 08:47:13 +02:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2016-07-13 17:53:42 -04:00
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
Some errors have detailed explanations: E0308, E0425.
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about an error, try `rustc --explain E0308`.
|