rust/tests/ui/parser/issue-105366.fixed
2023-01-11 09:32:08 +00:00

13 lines
187 B
Rust

// 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() {}