Skip to content

Instantly share code, notes, and snippets.

@jamesmunns
Created December 20, 2021 17:27
Show Gist options
  • Save jamesmunns/2728d628d26ca06926dcf9cd74e269a4 to your computer and use it in GitHub Desktop.
Save jamesmunns/2728d628d26ca06926dcf9cd74e269a4 to your computer and use it in GitHub Desktop.
error[E0277]: the trait bound `ManagedArcSlab<'_, 4_usize, 128_usize>: Reroot<N, SZ>` is not satisfied
--> src/main.rs:26:10
|
26 | #[derive(Reroot)]
| ^^^^^^ the trait `Reroot<N, SZ>` is not implemented for `ManagedArcSlab<'_, 4_usize, 128_usize>`
|
= help: the following implementations were found:
<ManagedArcSlab<'a, N, SZ> as Reroot<N, SZ>>
note: required by `reroot`
--> /home/james/anachro/powerbus-mini/submodules/powerbus/byte-slab/src/managed_arc_slab.rs:266:5
|
266 | fn reroot(self, arc: &SlabArc<N, SZ>) -> Result<Self::Retval, ()>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: this error originates in the derive macro `Reroot` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment