diff options
author | Josh Matthews <josh@joshmatthews.net> | 2016-12-16 11:36:47 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2016-12-16 11:52:45 -0500 |
commit | 14d8ae2478356014a4ab10fbed1b11b3616475a4 (patch) | |
tree | 92932abd86ec4af78cbcc3f8414ac71bb4d6115a /python/tidy/servo_tidy_tests/script_thread.rs | |
parent | a74cbbeb1a112dda2a18327ee0c9d4caad2ec277 (diff) | |
download | servo-14d8ae2478356014a4ab10fbed1b11b3616475a4.tar.gz servo-14d8ae2478356014a4ab10fbed1b11b3616475a4.zip |
Add a tidy check for problematic match cases in script_thread.rs
Diffstat (limited to 'python/tidy/servo_tidy_tests/script_thread.rs')
-rw-r--r-- | python/tidy/servo_tidy_tests/script_thread.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy_tests/script_thread.rs b/python/tidy/servo_tidy_tests/script_thread.rs new file mode 100644 index 00000000000..5dbeaec0e17 --- /dev/null +++ b/python/tidy/servo_tidy_tests/script_thread.rs @@ -0,0 +1,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() { + => {} + } +} |