Skip to content

Attempted to define built-in macro more than once #123

Description

@MaciejNadolski98

Hi, I'm getting an error when trying to compile a contract with a drink-based test.

[...]
error[E0773]: attempted to define built-in macro more than once
    --> /Users/maciej/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/macros/mod.rs:1449:5
     |
1449 |     macro_rules! cfg {
     |     ^^^^^^^^^^^^^^^^
     |
note: previously defined here
    --> /Users/maciej/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/macros/mod.rs:1449:5
     |
1449 |     macro_rules! cfg {
     |
[...]

Here's my Cargo.toml:

[package]
name = "stablecoin"
version = "0.1.0"
edition = "2021"
authors = ["Maciej Nadolski", "Yuchen Lin"]

[dependencies]
drink = "0.8.0"
ink = { version = "5.0.0", default-features = false }

[lib]
path = "src/stablecoin.rs"

[features] 
default = ["std"]
std = [
    "ink/std",
]
ink-as-dependency = []
e2e-tests = []

Please help :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions