diff options
| author | bors <bors@rust-lang.org> | 2019-11-14 08:03:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-11-14 08:03:01 +0000 |
| commit | a2491ee4e6c74451371aee8f4a2a5786d7a35406 (patch) | |
| tree | 276dc5a1368ab04c84a6387bf15bffab129aa5ff /src/test/ui/pattern | |
| parent | 5e380b797b22e5361a43b2b82f6278df17d89f3e (diff) | |
| parent | d145d1e72c184177f40447c63b2813dcef729860 (diff) | |
| download | rust-a2491ee4e6c74451371aee8f4a2a5786d7a35406.tar.gz rust-a2491ee4e6c74451371aee8f4a2a5786d7a35406.zip | |
Auto merge of #66403 - JohnTitor:rollup-7obuivl, r=JohnTitor
Rollup of 9 pull requests Successful merges: - #66253 (Improve errors after re rebalance coherence) - #66264 (fix an ICE in macro's diagnostic message) - #66349 (expand source_util macros with def-site context) - #66351 (Tweak non-char/numeric in range pattern diagnostic) - #66360 (Fix link to Exten in Vec::set_len) - #66361 (parser: don't use `unreachable!()` in `fn unexpected`.) - #66363 (Improve error message in make_tests) - #66369 (compiletest: Obtain timestamps for common inputs only once) - #66372 (Fix broken links in Ipv4Addr::is_benchmarking docs) Failed merges: r? @ghost
Diffstat (limited to 'src/test/ui/pattern')
| -rw-r--r-- | src/test/ui/pattern/patkind-litrange-no-expr.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/pattern/patkind-litrange-no-expr.stderr b/src/test/ui/pattern/patkind-litrange-no-expr.stderr index 7474d326793..78768d282e7 100644 --- a/src/test/ui/pattern/patkind-litrange-no-expr.stderr +++ b/src/test/ui/pattern/patkind-litrange-no-expr.stderr @@ -7,11 +7,11 @@ LL | Arith = 1 + 1, error[E0029]: only char and numeric types are allowed in range patterns --> $DIR/patkind-litrange-no-expr.rs:20:13 | +LL | $( $value ..= 42 => Some($name::$variant), )* // PatKind::Range + | -- this is of type `{integer}` +... LL | Arith = 1 + 1, - | ^^^^^ ranges require char or numeric types - | - = note: start type: {integer} - = note: end type: {integer} + | ^^^^^ this is of type `_` but it should be `char` or numeric error: aborting due to 2 previous errors |
