no-bound derives: Use absolute path for core (#1763)

Closes: https://github.com/paritytech/polkadot-sdk/issues/1718
This commit is contained in:
Bastian Köcher
2023-10-01 21:45:32 +02:00
committed by GitHub
parent 2ed66a0960
commit c54ea64af4
6 changed files with 31 additions and 17 deletions
+14
View File
@@ -647,3 +647,17 @@ fn check_storage_parameter_type_works() {
assert_eq!(300, StorageParameter::get());
})
}
#[test]
fn derive_partial_eq_no_bound_core_mod() {
mod core {}
#[derive(
crate::PartialEqNoBound,
crate::CloneNoBound,
crate::DebugNoBound,
crate::DefaultNoBound,
crate::EqNoBound,
)]
struct Test;
}