]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/two-mismatch-notes.rs
Rollup merge of #103701 - WaffleLapkin:__points-at-implementation__--this-can-be...
[rust.git] / src / test / ui / argument-suggestions / two-mismatch-notes.rs
1 #[derive(Copy, Clone)]
2 struct Wrapper<T>(T);
3
4 fn foo(_: fn(i32), _: Wrapper<i32>) {}
5
6 fn f(_: u32) {}
7
8 fn main() {
9     let w = Wrapper::<isize>(1isize);
10     foo(f, w); //~ ERROR arguments to this function are incorrect
11 }