]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23589.rs
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-23589.rs
1 fn main() {
2     let v: Vec(&str) = vec!['1', '2'];
3     //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
4     //~| ERROR mismatched types
5 }