1 error[E0308]: mismatched types
2 --> $DIR/switched-expectations.rs:13:30
4 13 | let ref string: String = var; //~ ERROR mismatched types [E0308]
5 | ^^^ expected struct `std::string::String`, found i32
7 = note: expected type `std::string::String`
10 error: aborting due to previous error