]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issue-105366.fixed
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / parser / issue-105366.fixed
1 // run-rustfix
2
3 struct Foo;
4
5 impl 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
12 fn main() {}