]> git.lizzy.rs Git - rust.git/blob - src/test/ui/compare-method/issue-90444.rs
Rollup merge of #101648 - Timmmm:home_dir_docs, r=joshtriplett
[rust.git] / src / test / ui / compare-method / issue-90444.rs
1 pub struct A;
2 impl From<fn((), (), &())> for A {
3     fn from(_: fn((), (), &mut ())) -> Self {
4         //~^ error: method `from` has an incompatible type for trait
5         loop {}
6     }
7 }
8
9 pub struct B;
10 impl From<fn((), (), u32)> for B {
11     fn from(_: fn((), (), u64)) -> Self {
12         //~^ error: method `from` has an incompatible type for trait
13         loop {}
14     }
15 }
16
17 fn main() {}