summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-105366.fixed
blob: 7157b647524dd7c8b1ed760e3ba25e4c3b9b24d9 (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() {}