allow where clause in decl_error (#7324)

This commit is contained in:
Guillaume Thiolliere authored and GitHub committed 2020-10-14 15:39:27 +00:00
1 parent 8503cc0892
commit 1164ced041
2 files changed
+18 -2

No files matched your search

@@ -81,6 +81,13 @@ mod module1 {
}
}
frame_support::decl_error! {
pub enum Error for Module<T: Trait<I>, I: Instance> where T::BlockNumber: From<u32> {
/// Test
Test,
}
}
frame_support::decl_event! {
pub enum Event<T, I> where Phantom = std::marker::PhantomData<T> {
_Phantom(Phantom),