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

7 lines
122 B
Rust

struct MyStruct;
impl MyStruct {
fn f() {|x, y} //~ ERROR expected one of `:`, `@`, or `|`, found `}`
}
fn main() {}