]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-105366.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / parser / issue-105366.rs
1 // run-rustfix
2
3 struct Foo;
4
5 fn From<i32> for Foo {
6     //~^ ERROR you might have meant to write `impl` instead of `fn`
7     fn from(_a: i32) -> Self {
8         Foo
9     }
10 }
11
12 fn main() {}