diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-01-25 18:44:50 -0700 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-01-27 08:59:58 -0700 |
| commit | e0bc0ba281b0efd67a3afc5f9b9dd36fab479800 (patch) | |
| tree | e8e8711ce58593f26b6c2d9ee7156f02ee169c77 /src/test | |
| parent | f95834b2a92aa1571d6339d50a34616515773f1c (diff) | |
| download | rust-e0bc0ba281b0efd67a3afc5f9b9dd36fab479800.tar.gz rust-e0bc0ba281b0efd67a3afc5f9b9dd36fab479800.zip | |
Update comment in test which has changed its purpose
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/parser/regions-out-of-scope-slice.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/parser/regions-out-of-scope-slice.stderr | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/test/ui/parser/regions-out-of-scope-slice.rs b/src/test/ui/parser/regions-out-of-scope-slice.rs index 2cc9b1ac45c..21369d0be61 100644 --- a/src/test/ui/parser/regions-out-of-scope-slice.rs +++ b/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 { diff --git a/src/test/ui/parser/regions-out-of-scope-slice.stderr b/src/test/ui/parser/regions-out-of-scope-slice.stderr index 026d14ca413..cd56dfa6aeb 100644 --- a/src/test/ui/parser/regions-out-of-scope-slice.stderr +++ b/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 `:` |
