rust/src/test/ui/codemap_tests/tab.stderr

22 lines
655 B
Text
Raw Normal View History

error[E0425]: cannot find value `bar` in this scope
--> $DIR/tab.rs:14:2
|
2018-02-23 03:42:32 +03:00
LL | bar; //~ ERROR cannot find value `bar`
| ^^^ not found in this scope
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
| ^^^^^^^^^^^^^^^^^^^^ expected (), found reference
|
= note: expected type `()`
found type `&'static str`
error: aborting due to 2 previous errors
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"