rust/tests/ui/parser/issues/issue-105366.rs
2024-02-16 20:02:50 +00:00

13 lines
186 B
Rust

//@ run-rustfix
struct Foo;
fn From<i32> for Foo {
//~^ ERROR you might have meant to write `impl` instead of `fn`
fn from(_a: i32) -> Self {
Foo
}
}
fn main() {}