2017-01-12 01:18:08 +03:00
|
|
|
error[E0425]: cannot find value `bar` in this scope
|
2016-07-13 17:53:42 -04:00
|
|
|
--> $DIR/tab.rs:14:2
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | bar; //~ ERROR cannot find value `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
|
|
|
|
--> $DIR/tab.rs:18:2
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn foo() {
|
2017-12-09 13:04:27 -08:00
|
|
|
| - help: try adding a return type: `-> &'static str`
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | "bar boo" //~ ERROR mismatched types
|
2017-11-12 22:06:00 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ expected (), found reference
|
2017-09-07 08:47:13 +02:00
|
|
|
|
|
|
|
|
= note: expected type `()`
|
|
|
|
found type `&'static str`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2016-07-13 17:53:42 -04:00
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
You've got a few errors: E0308, E0425
|
|
|
|
If you want more information on an error, try using "rustc --explain E0308"
|