]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui-toml/toml_trivially_copy/test.rs
1 // normalize-stderr-test "\(\d+ byte\)" -> "(N byte)"
2 // normalize-stderr-test "\(limit: \d+ byte\)" -> "(limit: N byte)"
4 #![deny(clippy::trivially_copy_pass_by_ref)]
5 #![allow(clippy::many_single_char_names)]
10 #[derive(Copy, Clone)]
13 fn good(a
: &mut u32, b
: u32, c
: &Bar
, d
: &u32) {}
15 fn bad(x
: &u16, y
: &Foo
) {}
18 let (mut a
, b
, c
, d
, x
, y
) = (0, 0, Bar(0), 0, 0, Foo(0));
19 good(&mut a
, b
, &c
, &d
);