Skip to content

Commit e9b68b4

Browse files
committed
Add known not-working tests
1 parent ef7db2f commit e9b68b4

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

tests/ui/suspicious_arguments.rs

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// edition:2015
22
#![warn(clippy::suspicious_arguments)]
3-
#![allow(anonymous_parameters, clippy::no_effect)]
3+
#![allow(anonymous_parameters, clippy::no_effect, dead_code)]
44

55
trait AnonymousArgs {
66
fn scale(&self, usize, usize) {}
@@ -127,12 +127,19 @@ fn tri_rotate() {
127127
large_resize(height, depth, width);
128128
}
129129

130+
fn patterns() {
131+
fn array([width, height]: [usize; 2]) {
130132

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));
138143
}
144+
145+
fn main() {}

0 commit comments

Comments
 (0)