summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-23589.rs
blob: 1c640af8d02b9311b8dae6a75025853a8fda3194 (plain)
1
2
3
4
5
fn main() {
    let v: Vec(&str) = vec!['1', '2'];
    //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
    //~| ERROR mismatched types
}