mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
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
|
|
|