Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
parser
/
issues
/
issue-105366.fixed
blob: 95419dc07f2cc1780bb38336e2fbd98713b62463 [
file
] [
log
] [
blame
]
//@ run-rustfix
#[allow(dead_code)]
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
()
{}