rust/tests/ui/parser/issues/issue-105366.rs
2024-07-04 22:05:00 +08:00

14 lines
206 B
Rust

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