mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-02 17:03:38 +00:00
13 lines
188 B
Plaintext
13 lines
188 B
Plaintext
//@ 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() {}
|