--> $DIR/issue-23589.rs:2:29
|
LL | let v: Vec(&str) = vec!['1', '2'];
- | ^^^ expected &str, found char
+ | ^^^ expected `&str`, found `char`
|
- = note: expected type `&str`
- found type `char`
+help: if you meant to write a `str` literal, use double quotes
+ |
+LL | let v: Vec(&str) = vec!["1", '2'];
+ | ~~~
error: aborting due to 2 previous errors