blob: 18c04dfaf2088b63a58db79763205e8ab766d3b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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 1 previous error
|