summaryrefslogtreecommitdiffstats
path: root/src/test/ui/compare-method/issue-90444.rs
blob: 6c287d9a707de2e456c51c4506609febb26c22c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub struct A;
impl From<fn((), (), &())> for A {
    fn from(_: fn((), (), &mut ())) -> Self {
        //~^ error: method `from` has an incompatible type for trait
        loop {}
    }
}

pub struct B;
impl From<fn((), (), u32)> for B {
    fn from(_: fn((), (), u64)) -> Self {
        //~^ error: method `from` has an incompatible type for trait
        loop {}
    }
}

fn main() {}