fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0214]: parenthesized type parameters may only be used with a `Fn` trait 2 --> $DIR/issue-23589.rs:2:12 3 | 4LL | let v: Vec(&str) = vec!['1', '2']; 5 | ^^^^^^^^^ only `Fn` traits may use parentheses 6 | 7help: use angle brackets instead 8 | 9LL | let v: Vec<&str> = vec!['1', '2']; 10 | ~ ~ 11 12error[E0308]: mismatched types 13 --> $DIR/issue-23589.rs:2:29 14 | 15LL | let v: Vec(&str) = vec!['1', '2']; 16 | ^^^ expected `&str`, found `char` 17 | 18help: if you meant to write a `str` literal, use double quotes 19 | 20LL | let v: Vec(&str) = vec!["1", '2']; 21 | ~~~ 22 23error: aborting due to 2 previous errors 24 25Some errors have detailed explanations: E0214, E0308. 26For more information about an error, try `rustc --explain E0214`.