14 lines
258 B
Plaintext
14 lines
258 B
Plaintext
|
error: you might have meant to write `impl` instead of `fn`
|
||
|
--> $DIR/issue-105366.rs:5:1
|
||
|
|
|
||
|
LL | fn From<i32> for Foo {
|
||
|
| ^^
|
||
|
|
|
||
|
help: replace `fn` with `impl` here
|
||
|
|
|
||
|
LL | impl From<i32> for Foo {
|
||
|
| ~~~~
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|