News for hackers. Stuff that matters.
Re:The State of Coherence in the Land of Type Classes by ratmice on Wednesday March 12, 2025 @06:17AM (#43341601)
I know there is definitely some wonkyness with rust traits and type inference,

    // Uncomment for compiler error.
    // use serde_json as _;
    //
    // Because serde_json includes impl PartialEq<serde_json::value> for u32
    let _ = 1u32 == 1usize.try_into().unwrap();
One really interesting thing is that this can affect a comparison in a totally separate crate that never uses serde_json via features.

https://play.rust-lang.org/?version=stable&mode=debug&editio...

There are no comments on this comment yet.