rust/src/test/ui/issues/issue-58856-1.rs

13 lines
212 B
Rust
Raw Normal View History

struct A;
impl A {
fn b(self> {}
//~^ ERROR expected one of `)`, `,`, or `:`, found `>`
}
// verify that mismatched delimiters get emitted
fn foo(] {}
//~^ ERROR incorrect close delimiter
fn main() {}