mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 23:57:56 +00:00
hooks default impl missing where clause (#13264)
* hooks default impl missing where clause * add tests * Update frame/support/test/tests/pallet_ui/pass/where_clause_missing_hooks.rs --------- Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -22,5 +22,4 @@ mod pallet {
|
||||
type Foo<T> = StorageValue<_, u8>;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
fn main() {}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
#[frame_support::pallet]
|
||||
mod pallet {
|
||||
#[pallet::config]
|
||||
pub trait Config: frame_system::Config where <Self as frame_system::Config>::Index: From<u128> {}
|
||||
|
||||
#[pallet::pallet]
|
||||
pub struct Pallet<T>(core::marker::PhantomData<T>);
|
||||
|
||||
#[pallet::call]
|
||||
impl<T: Config> Pallet<T> where <T as frame_system::Config>::Index: From<u128> {}
|
||||
|
||||
impl<T: Config> Pallet<T> where <T as frame_system::Config>::Index: From<u128> {
|
||||
fn foo(x: u128) {
|
||||
let _index = <T as frame_system::Config>::Index::from(x);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user