]> git.lizzy.rs Git - rust.git/blob - tests/ui-toml/toml_trivially_copy/test.rs
NFC: fix typos
[rust.git] / tests / ui-toml / toml_trivially_copy / test.rs
1 #![allow(clippy::many_single_char_names)]
2
3 #[derive(Copy, Clone)]
4 struct Foo(u8);
5
6 #[derive(Copy, Clone)]
7 struct Bar(u32);
8
9 fn good(a: &mut u32, b: u32, c: &Bar, d: &u32) {}
10
11 fn bad(x: &u16, y: &Foo) {}
12
13 fn main() {
14     let (mut a, b, c, d, x, y) = (0, 0, Bar(0), 0, 0, Foo(0));
15     good(&mut a, b, &c, &d);
16     bad(&x, &y);
17 }