rust/tests/ui/switched-expectations.stderr

12 lines
418 B
Plaintext
Raw Normal View History

2017-12-10 00:20:40 +00:00
error[E0308]: mismatched types
2018-12-25 15:56:47 +00:00
--> $DIR/switched-expectations.rs:3:30
2017-12-10 00:20:40 +00:00
|
2019-03-09 12:03:44 +00:00
LL | let ref string: String = var;
| ^^^- help: try using a conversion method: `.to_string()`
| |
| expected `String`, found `i32`
2017-12-10 00:20:40 +00:00
error: aborting due to 1 previous error
2017-12-10 00:20:40 +00:00
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0308`.