Skip to content
Permalink
Browse files

Reduce test case

  • Loading branch information...
estebank committed Mar 2, 2019
1 parent ed2de5a commit e38e915cdfaecb5a89d9bf2b041f19c6598ade09
Showing with 4 additions and 18 deletions.
  1. +1 −7 src/test/ui/issues/issue-58856-1.rs
  2. +3 −11 src/test/ui/issues/issue-58856-1.stderr
@@ -1,12 +1,6 @@
struct A;

impl A {
fn b(self> {}
fn b(self>
//~^ ERROR expected one of `)`, `,`, or `:`, found `>`
}

// verify that mismatched delimiters get emitted
fn foo(] {}
//~^ ERROR incorrect close delimiter

fn main() {}
@@ -1,19 +1,11 @@
error: expected one of `)`, `,`, or `:`, found `>`
--> $DIR/issue-58856-1.rs:4:14
--> $DIR/issue-58856-1.rs:2:14
|
LL | fn b(self> {}
LL | fn b(self>
| - ^
| | |
| | help: `)` may belong here
| unclosed delimiter

error: incorrect close delimiter: `]`
--> $DIR/issue-58856-1.rs:9:8
|
LL | fn foo(] {}
| -^ incorrect close delimiter
| |
| un-closed delimiter

error: aborting due to 2 previous errors
error: aborting due to previous error

0 comments on commit e38e915

Please sign in to comment.
You can’t perform that action at this time.