fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
187 B12 linesraw
1// run-rustfix
2
3struct Foo;
4
5impl From<i32> for Foo {
6    //~^ ERROR you might have meant to write `impl` instead of `fn`
7    fn from(_a: i32) -> Self {
8        Foo
9    }
10}
11
12fn main() {}