mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 02:20:36 +00:00
This reverts commit 31fe9628cf830a08e7194a446f66c668aaea86e9, reversing changes made to f20307851ead9fbbb9fa88bbffb3258a069230a6.
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() {}
|