rust/tests/ui/issues/issue-23589.rs
2023-01-11 09:32:08 +00:00

5 lines
165 B
Rust

fn main() {
let v: Vec(&str) = vec!['1', '2'];
//~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
//~| ERROR mismatched types
}