1 error[E0308]: mismatched types
2 --> $DIR/format-borrow.rs:2:21
4 LL | let a: String = &String::from("a");
7 | expected struct `std::string::String`, found &std::string::String
8 | help: consider removing the borrow: `String::from("a")`
10 error[E0308]: mismatched types
11 --> $DIR/format-borrow.rs:4:21
13 LL | let b: String = &format!("b");
16 | expected struct `std::string::String`, found &std::string::String
17 | help: consider removing the borrow: `format!("b")`
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0308`.