You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// in a/src/lib.rs which has a dependency on crate bpubfnmk_struct() -> b::SomeStruct{
b::SomeStruct}#[test]fnwer(){// compilesassert_eq!(self::mk_struct(), b::SomeStruct);}// in b/src/lib.rs which has dev-dependency on crate a#[derive(PartialEq,Eq,Debug)]pubstructSomeStruct;#[cfg(test)]mod tests {#[test]fnit_works(){// doesn't compile with following error// expected struct `b::SomeStruct`, found struct `SomeStruct`
a::mk_struct() == super::SomeStruct;}}
I would expect this code to compile but instead it emits the error "expected struct b::NonGeneric, found struct NonGeneric" which is odd as I would think they are the same type.