rust/src/test/ui/switched-expectations.stderr

13 lines
440 B
Plaintext
Raw Normal View History

2017-12-09 18:20:40 -06:00
error[E0308]: mismatched types
--> $DIR/switched-expectations.rs:13:30
|
2018-02-22 18:42:32 -06:00
LL | let ref string: String = var; //~ ERROR mismatched types [E0308]
2017-12-09 18:20:40 -06:00
| ^^^ expected struct `std::string::String`, found i32
|
= note: expected type `std::string::String`
found type `i32`
error: aborting due to previous error
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0308"