rust/tests/ui/parser/issues/issue-22712.rs

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() {}