diff --git a/uniffi_meta/src/reader.rs b/uniffi_meta/src/reader.rs index 6fec6cb3a3..a48201297e 100644 --- a/uniffi_meta/src/reader.rs +++ b/uniffi_meta/src/reader.rs @@ -259,7 +259,7 @@ impl<'a> MetadataReader<'a> { Type::Object { name, imp: ObjectImpl::Struct, .. } if name == &self_name ) }) - .context("Constructor return type must be Arc")?; + .context("Constructor return type must be Self or Arc")?; Ok(ConstructorMetadata { module_path,