rust/tests/ui/parser/issues/issue-105366.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
208 B
Rust
Raw Normal View History

//@ run-rustfix
2024-07-04 14:05:00 +00:00
#[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() {}