5f5b4ee128
This reverts commit31fe9628cf
, reversing changes made tof20307851e
.
13 lines
186 B
Rust
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() {}
|