rust/tests/ui/crashes/needless_pass_by_value-w-late-bound.fixed
2023-08-11 14:02:28 +00:00

10 lines
164 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() {}