mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
5f5b4ee128
This reverts commit31fe9628cf
, reversing changes made tof20307851e
.
13 lines
188 B
Rust
13 lines
188 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() {}
|