mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
13 lines
185 B
Rust
13 lines
185 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() {}
|