File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change 1
1
// edition:2015
2
2
#![ warn( clippy:: suspicious_arguments) ]
3
- #![ allow( anonymous_parameters, clippy:: no_effect) ]
3
+ #![ allow( anonymous_parameters, clippy:: no_effect, dead_code ) ]
4
4
5
5
trait AnonymousArgs {
6
6
fn scale ( & self , usize , usize ) { }
@@ -127,12 +127,19 @@ fn tri_rotate() {
127
127
large_resize ( height, depth, width) ;
128
128
}
129
129
130
+ fn patterns ( ) {
131
+ fn array ( [ width, height] : [ usize ; 2 ] ) {
130
132
131
- fn main ( ) {
132
- function_names ( ) ;
133
- variable_names ( ) ;
134
- struct_names ( ) ;
135
- should_not_lint ( ) ;
136
- cross_crate ( ) ;
137
- cross_std ( ) ;
133
+ }
134
+
135
+ fn tuple ( ( width, height) : ( usize , usize ) ) {
136
+ }
137
+
138
+ let width = 0 ;
139
+ let height = 0 ;
140
+
141
+ array ( [ height, width] ) ;
142
+ tuple ( ( height, width) ) ;
138
143
}
144
+
145
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments