diff --git a/crates/wit-bindgen/src/lib.rs b/crates/wit-bindgen/src/lib.rs index a741e3e227..426c0a58ff 100644 --- a/crates/wit-bindgen/src/lib.rs +++ b/crates/wit-bindgen/src/lib.rs @@ -992,7 +992,7 @@ impl<'a> InterfaceGenerator<'a> { } // Generate the `pub trait` which represents the host functionality for // this import. - uwriteln!(self.src, "pub trait Host: Sized {{"); + uwriteln!(self.src, "pub trait Host {{"); for (_, func) in iface.functions.iter() { self.generate_function_trait_sig(owner, func); }