diff options
Diffstat (limited to 'python/tidy/servo_tidy_tests/rust_tidy.rs')
-rw-r--r-- | python/tidy/servo_tidy_tests/rust_tidy.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy_tests/rust_tidy.rs b/python/tidy/servo_tidy_tests/rust_tidy.rs index 9bc37070613..358fce3a082 100644 --- a/python/tidy/servo_tidy_tests/rust_tidy.rs +++ b/python/tidy/servo_tidy_tests/rust_tidy.rs @@ -49,4 +49,12 @@ impl test { } } + type Text_Fun3 = fn( i32) -> i32; + + fn test_fun3<Text_Fun3>( y: Text_Fun3) { + test_fun( 1); + } + + // Should not be triggered + macro_rules! test_macro ( ( $( $fun:ident = $flag:ident ; )* ) => ()); } |