<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Static-Dispatch on ErrorVault — Developer Error Code Dictionary</title>
    <link>https://errorvault.dev/tags/static-dispatch/</link>
    <description>Recent content in Static-Dispatch on ErrorVault — Developer Error Code Dictionary</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 08 Jun 2026 10:20:04 +0800</lastBuildDate>
    <atom:link href="https://errorvault.dev/tags/static-dispatch/feed.xml" rel="self" type="application/rss+xml" />
    <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>
