rust/tests/ui/parser/issues/issue-22712.rs
2023-08-01 23:30:40 +08:00

10 lines
145 B
Rust

struct Foo<B> {
buffer: B
}
fn bar() {
let Foo<Vec<u8>> //~ ERROR generic args in patterns require the turbofish syntax
}
fn main() {}