containers / youki

A container runtime written in Rust
https://containers.github.io/youki/
Apache License 2.0
5.99k stars 332 forks source link

Associated type defaults are not stable, broken since 0.3.2 #2811

Open drahnr opened 2 weeks ago

drahnr commented 2 weeks ago
  --> /home/bernhard/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libcontainer-0.3.2/src/workload/mod.rs:56:5
   |
56 |     type Error = ExecutorError;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #29661 <https://github.com/rust-lang/rust/issues/29661> for more information

error[E0191]: the value of the associated type `Error` in `Executor` must be specified
  --> /home/bernhard/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libcontainer-0.3.2/src/container/builder.rs:25:34
   |
25 |     pub(super) executor: Box<dyn Executor>,
   |                                  ^^^^^^^^ help: specify the associated type: `Executor<Error = Type>`
   |
  ::: /home/bernhard/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libcontainer-0.3.2/src/workload/mod.rs:56:5
   |
56 |     type Error = ExecutorError;
   |     ---------- `Error` defined here
YJDoc2 commented 2 weeks ago

Hey, can you give some more info, like what are your deps, where are you using this, how did you get this error etc? Thanks!