<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Function Arguments on ErrorVault — Developer Error Code Dictionary</title>
    <link>https://errorvault.dev/tags/function-arguments/</link>
    <description>Recent content in Function Arguments on ErrorVault — Developer Error Code Dictionary</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 12 Jul 2026 15:08:04 +0800</lastBuildDate>
    <atom:link href="https://errorvault.dev/tags/function-arguments/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Fix E0045: Type Mismatch in Rust Function Arguments</title>
      <link>https://errorvault.dev/rust/rust-e0045-type-mismatch-function-args/</link>
      <pubDate>Sun, 12 Jul 2026 15:08:04 +0800</pubDate>
      <guid>https://errorvault.dev/rust/rust-e0045-type-mismatch-function-args/</guid>
      <description>&lt;h2 id=&#34;1-symptoms&#34;&gt;1. Symptoms&lt;/h2&gt;&#xA;&lt;p&gt;When the Rust compiler encounters error E0045, you will see a message indicating a type mismatch during function invocation or generic resolution. The error manifests with the compiler explicitly stating that an expected type was not found in the provided arguments. Common presentation includes the file location, line number, and a clear comparison between the expected parameter type and the actual type passed by the caller.&lt;/p&gt;&#xA;&lt;p&gt;Shell output typically shows something similar to the following pattern:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fix E0228: Type Mismatch in Function Arguments</title>
      <link>https://errorvault.dev/rust/rust-e0228-type-mismatch-function-arguments/</link>
      <pubDate>Fri, 08 May 2026 19:56:04 +0800</pubDate>
      <guid>https://errorvault.dev/rust/rust-e0228-type-mismatch-function-arguments/</guid>
      <description>&lt;h2 id=&#34;1-symptoms&#34;&gt;1. Symptoms&lt;/h2&gt;&#xA;&lt;p&gt;The Rust compiler emits error E0228 when it encounters a type mismatch between expected function parameters and provided arguments. This error manifests in several common scenarios that developers encounter during compilation.&lt;/p&gt;&#xA;&lt;h3 id=&#34;error-message-display&#34;&gt;Error Message Display&lt;/h3&gt;&#xA;&lt;h2 id=&#34;when-e0228-is-triggered-the-compiler-produces-output-similar-to&#34;&gt;When E0228 is triggered, the compiler produces output similar to:&lt;/h2&gt;&#xA;&lt;p&gt;error[E0228]: no implementation for type &lt;code&gt;{integer} == &amp;amp;str&lt;/code&gt;&#xA;&amp;ndash;&amp;gt; src/main.rs:10:5&#xA;|&#xA;10 |     compare(42, &amp;ldquo;hello&amp;rdquo;);&#xA;|     ^^^^^^^ expected &lt;code&gt;i32&lt;/code&gt;, found &lt;code&gt;&amp;amp;str&lt;/code&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Another common presentation:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;error[E0228]: the type definitions in the impl for the given type have different number of lifetimes than the type definition&#xA;&amp;ndash;&amp;gt; src/lib.rs:45:12&#xA;|&#xA;45 |     instance.method::&amp;lt;&amp;lsquo;a, &amp;lsquo;b&amp;gt;(&amp;amp;value);&#xA;|              ^^^^^^^^^^^^^^^^ lifetime mismatch&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
