Skip to content

dyn object infer error??? #21406

@yuyang-ok

Description

@yuyang-ok

I have this code

    fn clone(&self) -> Box<dyn SchemaTrait> {
        Box::new(Clone::clone(self))
    }
expected Box<dyn SchemaTrait + 'static, Global>, found Box<ClickHouseDB, Global> 

and Self is implemented SchemaTrait .
the code can compile

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions