about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-105366.fixed
blob: 95419dc07f2cc1780bb38336e2fbd98713b62463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ run-rustfix

#[allow(dead_code)]
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() {}