Nice, I think I've found a (for me) suitable workaround for the above problem
=> https://github.com/creusot-rs/creusot/issues/1337#issuecomment-2821430387
The "trick" is to use conditional compilation with `cfg` and `cfg_attr`, so we don't derive or use `Debug` when in context of Creusot.
See the above linked comment on how to do this exactly.
More on `cfg`, `cfg_attr` and conditional compilation in the #Rust reference:
https://doc.rust-lang.org/reference/conditional-compilation.html
![thread 'rustc' panicked at creusot/src/backend/ty_inv.rs:69:18: not implemented: dyn [Binder { value: Trait(std::fmt::Write), bound_vars: [] }] + '?24 note: run with `RUST_BACKTRACE=1` environment ... thread 'rustc' panicked at creusot/src/backend/ty_inv.rs:69:18: not implemented: dyn [Binder { value: Trait(std::fmt::Write), bound_vars: [] }] + '?24 note: run with `RUST_BACKTRACE=1` environment ...](https://media.mathstodon.xyz/cache/preview_cards/images/024/472/272/original/a05642105cbfc5d3.png)