fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
725 B22 linesraw
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   |            ^^^^^^^^^
6   |            |
7   |            only `Fn` traits may use parentheses
8   |            help: use angle brackets instead: `Vec<&str>`
9
10error[E0308]: mismatched types
11  --> $DIR/issue-23589.rs:2:29
12   |
13LL |     let v: Vec(&str) = vec!['1', '2'];
14   |                             ^^^ expected &str, found char
15   |
16   = note: expected type `&str`
17              found type `char`
18
19error: aborting due to 2 previous errors
20
21Some errors have detailed explanations: E0214, E0308.
22For more information about an error, try `rustc --explain E0214`.