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

using_cxx crate_universe example fails clippy #2842

Open
UebelAndre opened this issue Sep 6, 2024 · 0 comments
Open

using_cxx crate_universe example fails clippy #2842

UebelAndre opened this issue Sep 6, 2024 · 0 comments
Labels

Comments

@UebelAndre
Copy link
Collaborator

When using Rust 1.81.0 the cxx example fails with the following clippy error.

cd examples/crate_universe
bazel build //using_cxx/... --config=clippy
error: `?Sized` bound is ignored because of a `Sized` requirement
  --> using_cxx/src/main.rs:11:14
   |
11 |         type MultiBuf;
   |              ^^^^^^^^^
   |
note: `T` cannot be unsized because of the bound
  --> using_cxx/src/main.rs:11:9
   |
11 |         type MultiBuf;
   |         ^^^^^^^^^^^^^^
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_maybe_sized
   = note: `-D clippy::needless-maybe-sized` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_maybe_sized)]`
help: change the bounds that require `Sized`, or remove the `?Sized` bound
   |
11 -         type MultiBuf;
   |
error: aborting due to 1 previous error
@UebelAndre UebelAndre added the bug label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant