about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/needless_pass_by_value-w-late-bound.rs
blob: 949cd5de7fb84e4e3a9363deb9eb779098811d4d (plain)
1
2
3
4
5
6
7
8
9
10
// https://github.com/rust-lang/rust/issues/107147

#![warn(clippy::needless_pass_by_value)]

struct Foo<'a>(&'a [(); 100]);

fn test(x: Foo<'_>) {}
//~^ needless_pass_by_value

fn main() {}