Centralize box pattern tests in patterns.rs
This commit is contained in:
@@ -414,8 +414,6 @@ pub(crate) fn match_arm_list(p: &mut Parser) {
|
||||
// X | Y if Z => (),
|
||||
// | X | Y if Z => (),
|
||||
// | X => (),
|
||||
// box X => (),
|
||||
// Some(box X) => (),
|
||||
// };
|
||||
// }
|
||||
fn match_arm(p: &mut Parser) -> BlockLike {
|
||||
|
||||
@@ -269,11 +269,6 @@ fn bind_pat(p: &mut Parser, with_at: bool) -> CompletedMarker {
|
||||
m.complete(p, BIND_PAT)
|
||||
}
|
||||
|
||||
// test_err ref_box_pat
|
||||
// fn main() {
|
||||
// let ref box i = ();
|
||||
// }
|
||||
|
||||
// test box_pat
|
||||
// fn main() {
|
||||
// let box i = ();
|
||||
|
||||
Reference in New Issue
Block a user