mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
173 B
Solidity
9 lines
173 B
Solidity
contract c {
|
|
struct S {
|
|
uint x;
|
|
}
|
|
mapping(S => uint) data;
|
|
}
|
|
// ----
|
|
// TypeError: (47-48): Only elementary types, contract types or enums are allowed as mapping keys.
|