summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/needless_pass_by_value-w-late-bound.fixed
blob: 774dea3919396dc1d1ca414c34334d236c7da6f9 (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<'_>) {}
//~^ ERROR: this argument is passed by value, but not consumed in the function body

fn main() {}