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