]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/issue-38371.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / mismatched_types / issue-38371.rs
1 // run-rustfix
2 // see also issue-38371-unfixable.rs
3 #![allow(dead_code)]
4
5 #[derive(Copy, Clone)]
6 struct Foo {}
7
8 fn foo(&_a: Foo) {} //~ ERROR mismatched types
9
10 fn bar(_a: Foo) {}
11
12 fn qux(_a: &Foo) {}
13
14 fn zar(&_a: &Foo) {}
15
16 fn agh(&&_a: &u32) {} //~ ERROR mismatched types
17
18 fn main() {}