Skip to content

Incorrect 'cannot bind by-move with sub-bindings` error #3761

Closed
@brson

Description

@brson
                while self.from_content.peek() {                                                                   
                    match self.from_content.recv() {                                                               
                        move msg @ BuildMsg(*) => {                                                                
                            last_build_msg = Some(move msg);                                                       
                        }                                                                                          
                        move msg => {                                                                              
                            enqueue_last_build_msg();                                                              
                            // Other messages need responses                                                       
                            request_queue_chan.send(msg);                                                          
                        }                                                                                          
                    }                                                                                              
                } 
/home/brian/dev/servo/src/servo/layout/layout_task.rs:241:24: 241:49 error: cannot bind by-move with sub-bindings
/home/brian/dev/servo/src/servo/layout/layout_task.rs:241                         move msg @ BuildMsg(*) => {
                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~

There aren't any sub-bindings there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lifetimesArea: Lifetimes / regions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions