Skip to content

Commit

Permalink
Update comment in test which has changed its purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Jan 27, 2019
1 parent f95834b commit e0bc0ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/test/ui/parser/regions-out-of-scope-slice.rs
@@ -1,8 +1,6 @@
// blk region isn't supported in the front-end
// This basically tests the parser's recovery on `'blk` in the wrong place.

fn foo(cond: bool) {
// Here we will infer a type that uses the
// region of the if stmt then block, but in the scope:
let mut x;

if cond {
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/parser/regions-out-of-scope-slice.stderr
@@ -1,5 +1,5 @@
error: expected `:`, found `[`
--> $DIR/regions-out-of-scope-slice.rs:9:19
--> $DIR/regions-out-of-scope-slice.rs:7:19
|
LL | x = &'blk [1,2,3]; //~ ERROR expected `:`, found `[`
| ^ expected `:`
Expand Down

0 comments on commit e0bc0ba

Please sign in to comment.