summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-105366.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/issue-105366.fixed')
-rw-r--r--tests/ui/parser/issue-105366.fixed12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/parser/issue-105366.fixed b/tests/ui/parser/issue-105366.fixed
new file mode 100644
index 000000000..ad26643c3
--- /dev/null
+++ b/tests/ui/parser/issue-105366.fixed
@@ -0,0 +1,12 @@
+// run-rustfix
+
+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() {}