mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
10 lines
163 B
Rust
10 lines
163 B
Rust
|
// https://github.com/rust-lang/rust/issues/107147
|
||
|
|
||
|
#![warn(clippy::needless_pass_by_value)]
|
||
|
|
||
|
struct Foo<'a>(&'a [(); 100]);
|
||
|
|
||
|
fn test(x: Foo<'_>) {}
|
||
|
|
||
|
fn main() {}
|