mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
Detect conflicting module names in construct_runtime! (#7968)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
use frame_support::construct_runtime;
|
||||
|
||||
construct_runtime! {
|
||||
pub enum Runtime where
|
||||
Block = Block,
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic
|
||||
{
|
||||
System: system::{Module},
|
||||
Balance: balances::{Module},
|
||||
Balance: balances::{Module},
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
error: Two modules with the same name!
|
||||
--> $DIR/conflicting_module_name.rs:10:3
|
||||
|
|
||||
10 | Balance: balances::{Module},
|
||||
| ^^^^^^^
|
||||
|
||||
error: Two modules with the same name!
|
||||
--> $DIR/conflicting_module_name.rs:11:3
|
||||
|
|
||||
11 | Balance: balances::{Module},
|
||||
| ^^^^^^^
|
||||
Reference in New Issue
Block a user