<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Dyn on ErrorVault — Developer Error Code Dictionary</title>
    <link>https://errorvault.dev/tags/dyn/</link>
    <description>Recent content in Dyn on ErrorVault — Developer Error Code Dictionary</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 13 Jul 2026 15:08:04 +0800</lastBuildDate>
    <atom:link href="https://errorvault.dev/tags/dyn/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Fix E0641: `trait` objects include an associated type</title>
      <link>https://errorvault.dev/rust/rust-e0641-trait-objects-include-associated-type/</link>
      <pubDate>Mon, 13 Jul 2026 15:08:04 +0800</pubDate>
      <guid>https://errorvault.dev/rust/rust-e0641-trait-objects-include-associated-type/</guid>
      <description>&lt;h1 id=&#34;fix-e0641-trait-objects-include-an-associated-type&#34;&gt;Fix E0641: &lt;code&gt;trait&lt;/code&gt; objects include an associated type&lt;/h1&gt;&#xA;&lt;p&gt;Rust&amp;rsquo;s trait object system enables dynamic dispatch through &lt;code&gt;dyn Trait&lt;/code&gt; syntax, but the compiler enforces strict requirements about which traits can be used as trait objects. Error E0641 fires when you attempt to create a &lt;code&gt;dyn Trait&lt;/code&gt; reference from a trait that contains an associated type, because trait objects alone cannot resolve what concrete type should occupy the associated type&amp;rsquo;s slot. This article explains the root cause, demonstrates concrete fixes, and shows how to verify the resolution.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fix E0376: Cannot Use Unsafe Trait as Trait Object</title>
      <link>https://errorvault.dev/rust/rust-e0376-unsafe-trait-trait-object/</link>
      <pubDate>Mon, 08 Jun 2026 10:20:04 +0800</pubDate>
      <guid>https://errorvault.dev/rust/rust-e0376-unsafe-trait-trait-object/</guid>
      <description>&lt;h1 id=&#34;fix-e0376-cannot-use-unsafe-trait-as-trait-object&#34;&gt;Fix E0376: Cannot Use Unsafe Trait as Trait Object&lt;/h1&gt;&#xA;&lt;p&gt;The Rust compiler error E0376 occurs when attempting to create a trait object (&lt;code&gt;dyn Trait&lt;/code&gt;) from the &lt;code&gt;Unsafe&lt;/code&gt; trait. The &lt;code&gt;Unsafe&lt;/code&gt; trait is fundamentally incompatible with dynamic dispatch because it represents a marker trait with special semantic meaning that cannot be safely abstracted at runtime.&lt;/p&gt;&#xA;&lt;h2 id=&#34;1-symptoms&#34;&gt;1. Symptoms&lt;/h2&gt;&#xA;&lt;p&gt;When you attempt to use the &lt;code&gt;Unsafe&lt;/code&gt; trait with dynamic dispatch syntax, the compiler produces a clear error message:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
