Skip to content

Box<dyn T> #8

@mio-19

Description

@mio-19

I somehow got this error:

error[E0277]: the size for values of type `dyn Values` cannot be known at compilation time
  --> src/lib.rs:54:49
   |
54 |         self.unsafe_write(THREADED_OBJECT_SPACE.create(Box::new(x))).await;
   |                                                 ^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `std::marker::Sized` is not implemented for `dyn Values`
   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
   = note: required because of the requirements on the impl of `_::_gcmodule::Trace` for `std::boxed::Box<dyn Values>`

https://github.com/The-Lingo/The-Lingo/blob/73f5827b7cc8da1b3ab264cc0d986c917c54abc4/rust/the-lingo/src/lib.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions