Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust server: warning: warning: the trait protocol::Godzilla cannot be made into an object #33

Open
problame opened this issue Jul 5, 2020 · 0 comments
Assignees

Comments

@problame
Copy link
Collaborator

problame commented Jul 5, 2020

warning: the trait `protocol::Godzilla` cannot be made into an object
   --> /builds/49nord/public/humblegen-rs/example/target/debug/build/humblegen-example-project-c27ef743e98c866b/out/protocol.rs:168:14
    |
166 | pub trait Godzilla {
    |           -------- this trait cannot be made into an object...
167 |     type Context: Default + Sized + Send + Sync;
168 |     async fn intercept_handler_pre(
    |              ^^^^^^^^^^^^^^^^^^^^^ ...because method `intercept_handler_pre` references the `Self` type in its `where` clause
    |
    = note: `#[warn(where_clauses_object_safety)]` on by default
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #51443 <https://github.com/rust-lang/rust/issues/51443>
    = help: consider moving `intercept_handler_pre` to another trait
@problame problame self-assigned this Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant