summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-105366.fixed
blob: ad26643c327945ab2bca04fcae23d0651edf19b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-rustfix

struct Foo;

impl From<i32> for Foo {
    //~^ ERROR you might have meant to write `impl` instead of `fn`
    fn from(_a: i32) -> Self {
        Foo
    }
}

fn main() {}