diff options
| author | Michael Goulet <michael@errs.io> | 2023-06-24 18:35:22 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-06-24 18:41:27 +0000 |
| commit | e304a1f13b456df877cae8ca27bf360b1d0c89fc (patch) | |
| tree | 9f7163fca79c23440259a34c12b6ab85a97a7a1b /tests/ui/pattern/byte-string-inference.rs | |
| parent | 1d67eba6873b1d551a259a0bbc1e2651b4443e12 (diff) | |
| download | rust-e304a1f13b456df877cae8ca27bf360b1d0c89fc.tar.gz rust-e304a1f13b456df877cae8ca27bf360b1d0c89fc.zip | |
Revert "Structurally resolve correctly in check_pat_lit"
This reverts commit 54fb5a48b968b3a329ceeb57226d9ac60f983f04.
Diffstat (limited to 'tests/ui/pattern/byte-string-inference.rs')
| -rw-r--r-- | tests/ui/pattern/byte-string-inference.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/pattern/byte-string-inference.rs b/tests/ui/pattern/byte-string-inference.rs new file mode 100644 index 00000000000..b1517de6b67 --- /dev/null +++ b/tests/ui/pattern/byte-string-inference.rs @@ -0,0 +1,15 @@ +// check-pass + +fn load<L>() -> Option<L> { + todo!() +} + +fn main() { + while let Some(tag) = load() { + match &tag { + b"NAME" => {} + b"DATA" => {} + _ => {} + } + } +} |
