Revert "Structurally resolve correctly in check_pat_lit"
This reverts commit 54fb5a48b9
.
This commit is contained in:
parent
1d67eba687
commit
e304a1f13b
4 changed files with 30 additions and 3 deletions
15
tests/ui/pattern/byte-string-inference.rs
Normal file
15
tests/ui/pattern/byte-string-inference.rs
Normal file
|
@ -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" => {}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue