aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy_tests/script_thread.rs
blob: 5dbeaec0e17aa542ccf9c31c277c6c5d03063b32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn main() {
    // This should trigger an error.
    match self.documents.borrow_mut() {
        _ => {}
    }
    // This should trigger an error.
    match self.documents.borrow() {
        _ => {}
    }
    // This should not trigger an error.
    match { self.documents.borrow().find_window(id) } {
        => {}
    }
    // This should not trigger an error.
    match self.documents_status.borrow() {
        => {}
    }
}