[INFO] fetching crate ink_lang_macro 3.0.0-rc1...
[INFO] testing ink_lang_macro-3.0.0-rc1 against 1.47.0 for beta-1.48-1
[INFO] extracting crate ink_lang_macro 3.0.0-rc1 into /workspace/builds/worker-2/source
[INFO] validating manifest of crates.io crate ink_lang_macro 3.0.0-rc1 on toolchain 1.47.0
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.47.0" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking crates.io crate ink_lang_macro 3.0.0-rc1
[INFO] finished tweaking crates.io crate ink_lang_macro 3.0.0-rc1
[INFO] tweaked toml for crates.io crate ink_lang_macro 3.0.0-rc1 written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.47.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.47.0" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+1.47.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 9f7286061d7c1f295c46d4832bf0fc9d8d03c01171d304ff89629af3d4acf775
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "9f7286061d7c1f295c46d4832bf0fc9d8d03c01171d304ff89629af3d4acf775", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9f7286061d7c1f295c46d4832bf0fc9d8d03c01171d304ff89629af3d4acf775", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9f7286061d7c1f295c46d4832bf0fc9d8d03c01171d304ff89629af3d4acf775", kill_on_drop: false }`
[INFO] [stdout] 9f7286061d7c1f295c46d4832bf0fc9d8d03c01171d304ff89629af3d4acf775
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+1.47.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 453b12b500b786a0b6a50e3741ee9c206672b37b106c6a8067244a3f04b98730
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "453b12b500b786a0b6a50e3741ee9c206672b37b106c6a8067244a3f04b98730", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde v1.0.117
[INFO] [stderr]    Compiling arrayvec v0.5.1
[INFO] [stderr]    Compiling byte-slice-cast v0.3.5
[INFO] [stderr]    Compiling trybuild v1.0.35
[INFO] [stderr]    Compiling bitvec v0.17.4
[INFO] [stderr]    Compiling itertools v0.9.0
[INFO] [stderr]    Compiling ink_prelude v3.0.0-rc1
[INFO] [stderr]    Compiling derive_more v0.99.11
[INFO] [stderr]    Compiling scale-info-derive v0.2.1
[INFO] [stderr]    Compiling blake2 v0.9.0
[INFO] [stderr]    Compiling ink_lang_ir v3.0.0-rc1
[INFO] [stderr]    Compiling ink_lang_codegen v3.0.0-rc1
[INFO] [stderr]    Compiling toml v0.5.7
[INFO] [stderr]    Compiling serde_json v1.0.59
[INFO] [stderr]    Compiling proc-macro-crate v0.1.5
[INFO] [stderr]    Compiling parity-scale-codec-derive v1.2.2
[INFO] [stderr]    Compiling parity-scale-codec v1.3.5
[INFO] [stderr]    Compiling scale-info v0.4.1
[INFO] [stderr]    Compiling ink_primitives v3.0.0-rc1
[INFO] [stderr]    Compiling ink_lang_macro v3.0.0-rc1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 55.94s
[INFO] running `Command { std: "docker" "inspect" "453b12b500b786a0b6a50e3741ee9c206672b37b106c6a8067244a3f04b98730", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "453b12b500b786a0b6a50e3741ee9c206672b37b106c6a8067244a3f04b98730", kill_on_drop: false }`
[INFO] [stdout] 453b12b500b786a0b6a50e3741ee9c206672b37b106c6a8067244a3f04b98730
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+1.47.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4195147c82d55df655b11fe6f5d9a270c829ecb067062308f9c9e754061bb37c
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "4195147c82d55df655b11fe6f5d9a270c829ecb067062308f9c9e754061bb37c", kill_on_drop: false }`
[INFO] [stderr]    Compiling ink_lang_macro v3.0.0-rc1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.90s
[INFO] running `Command { std: "docker" "inspect" "4195147c82d55df655b11fe6f5d9a270c829ecb067062308f9c9e754061bb37c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4195147c82d55df655b11fe6f5d9a270c829ecb067062308f9c9e754061bb37c", kill_on_drop: false }`
[INFO] [stdout] 4195147c82d55df655b11fe6f5d9a270c829ecb067062308f9c9e754061bb37c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+1.47.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 7c4fa6d0dab6db7dc53889a64146fae32cb913c47988ddb9afa6267fd34242c8
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "7c4fa6d0dab6db7dc53889a64146fae32cb913c47988ddb9afa6267fd34242c8", kill_on_drop: false }`
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.13s
[INFO] [stderr]      Running /opt/rustwide/target/debug/deps/ink_lang_macro-ca0a29995cbb347a
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests ink_lang_macro
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 17 tests
[INFO] [stdout] test src/lib.rs - contract (line 354) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 81) ... FAILED
[INFO] [stdout] test src/lib.rs - trait_definition (line 524) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 210) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 489) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 163) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 148) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 239) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 71) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 116) ... FAILED
[INFO] [stdout] test src/lib.rs - test (line 611) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 315) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 277) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 391) ... FAILED
[INFO] [stdout] test src/lib.rs - trait_definition (line 546) ... FAILED
[INFO] [stdout] test src/lib.rs - contract (line 402) ... FAILED
[INFO] [stderr] error: test failed, to rerun pass '--doc'
[INFO] [stdout] test src/lib.rs - contract (line 439) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - contract (line 354) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:355:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:356:3
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[ink::contract]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:358:3
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[ink(storage)]
[INFO] [stdout]   |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:363:7
[INFO] [stdout]    |
[INFO] [stdout] 11 |     #[ink(constructor)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:364:7
[INFO] [stdout]    |
[INFO] [stdout] 12 |     #[ink(selector = "0xDEADBEEF")] // Works on constructors as well.
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:370:3
[INFO] [stdout]    |
[INFO] [stdout] 18 | #[ink(message)]
[INFO] [stdout]    |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:371:3
[INFO] [stdout]    |
[INFO] [stdout] 19 | #[ink(selector = "0xCAFEBABE")] // You can either specify selector out-of-line.
[INFO] [stdout]    |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:377:7
[INFO] [stdout]    |
[INFO] [stdout] 25 |     #[ink(message, selector = "0xFEEDBEEF")] // ... or specify selector inline.
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 81) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:82:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:83:3
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[ink::contract(dynamic_storage_allocator = true)]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:85:3
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[ink(storage)]
[INFO] [stdout]   |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:88:7
[INFO] [stdout]   |
[INFO] [stdout] 9 |     #[ink(constructor)]
[INFO] [stdout]   |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:90:7
[INFO] [stdout]    |
[INFO] [stdout] 11 |     #[ink(message)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - trait_definition (line 524) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:525:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::trait_definition`
[INFO] [stdout]  --> src/lib.rs:528:3
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[ink::trait_definition]
[INFO] [stdout]   |   ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink`
[INFO] [stdout]  --> src/lib.rs:531:7
[INFO] [stdout]   |
[INFO] [stdout] 9 |     #[ink(constructor)]
[INFO] [stdout]   |       ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink`
[INFO] [stdout]   --> src/lib.rs:535:7
[INFO] [stdout]    |
[INFO] [stdout] 13 |     #[ink(message)]
[INFO] [stdout]    |       ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ink_env`
[INFO] [stdout]  --> src/lib.rs:526:48
[INFO] [stdout]   |
[INFO] [stdout] 4 | type Balance = <ink_env::DefaultEnvironment as ink_env::Environment>::Balance;
[INFO] [stdout]   |                                                ^^^^^^^ use of undeclared type or module `ink_env`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ink_env`
[INFO] [stdout]  --> src/lib.rs:526:17
[INFO] [stdout]   |
[INFO] [stdout] 4 | type Balance = <ink_env::DefaultEnvironment as ink_env::Environment>::Balance;
[INFO] [stdout]   |                 ^^^^^^^ use of undeclared type or module `ink_env`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 210) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:211:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:212:3
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[ink::contract]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:214:7
[INFO] [stdout]   |
[INFO] [stdout] 6 |     #[ink(storage)]
[INFO] [stdout]   |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:219:7
[INFO] [stdout]    |
[INFO] [stdout] 11 |     #[ink(constructor)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:221:7
[INFO] [stdout]    |
[INFO] [stdout] 13 |     #[ink(message)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 489) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:490:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:492:3
[INFO] [stdout]   |
[INFO] [stdout] 5 | #[ink::contract]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:494:7
[INFO] [stdout]   |
[INFO] [stdout] 7 |     #[ink(storage)]
[INFO] [stdout]   |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:501:11
[INFO] [stdout]    |
[INFO] [stdout] 14 |         #[ink(constructor)]
[INFO] [stdout]    |           ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:507:11
[INFO] [stdout]    |
[INFO] [stdout] 20 |         #[ink(message)]
[INFO] [stdout]    |           ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:513:11
[INFO] [stdout]    |
[INFO] [stdout] 26 |         #[ink(message)]
[INFO] [stdout]    |           ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 163) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:164:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:165:3
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[ink::contract(env_types = MyEnvironment)]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:178:3
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[ink(storage)]
[INFO] [stdout]    |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:181:7
[INFO] [stdout]    |
[INFO] [stdout] 20 |     #[ink(constructor)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:183:7
[INFO] [stdout]    |
[INFO] [stdout] 22 |     #[ink(message)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ink_env`
[INFO] [stdout]  --> src/lib.rs:169:6
[INFO] [stdout]   |
[INFO] [stdout] 8 | impl ink_env::Environment for MyEnvironment {
[INFO] [stdout]   |      ^^^^^^^ use of undeclared type or module `ink_env`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 148) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ink_env`
[INFO] [stdout]  --> src/lib.rs:151:6
[INFO] [stdout]   |
[INFO] [stdout] 5 | impl ink_env::Environment for MyEnvironment {
[INFO] [stdout]   |      ^^^^^^^ use of undeclared type or module `ink_env`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 239) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:240:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:241:3
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[ink::contract]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:243:3
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[ink(storage)]
[INFO] [stdout]   |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:248:7
[INFO] [stdout]    |
[INFO] [stdout] 11 |     #[ink(constructor)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:252:3
[INFO] [stdout]    |
[INFO] [stdout] 15 | #[ink(message)]
[INFO] [stdout]    |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 71) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_storage`
[INFO] [stdout]  --> src/lib.rs:73:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use ink_storage as storage;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^ no `ink_storage` external crate
[INFO] [stdout] 
[INFO] [stdout] warning: type `_unused` should have an upper camel case name
[INFO] [stdout]  --> src/lib.rs:74:6
[INFO] [stdout]   |
[INFO] [stdout] 5 | type _unused =
[INFO] [stdout]   |      ^^^^^^^ help: convert the identifier to upper camel case: `Unused`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 116) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:117:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:118:3
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[ink::contract(compile_as_dependency = true)]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:120:3
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[ink(storage)]
[INFO] [stdout]   |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:123:7
[INFO] [stdout]   |
[INFO] [stdout] 9 |     #[ink(constructor)]
[INFO] [stdout]   |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:125:7
[INFO] [stdout]    |
[INFO] [stdout] 11 |     #[ink(message)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - test (line 611) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:612:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 315) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:316:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:317:3
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[ink::contract]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:319:3
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[ink(storage)]
[INFO] [stdout]   |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:324:3
[INFO] [stdout]    |
[INFO] [stdout] 11 | #[ink(constructor)]
[INFO] [stdout]    |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:329:7
[INFO] [stdout]    |
[INFO] [stdout] 16 |     #[ink(message)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:330:7
[INFO] [stdout]    |
[INFO] [stdout] 17 |     #[ink(payable)] // You can either specify payable out-of-line.
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:336:7
[INFO] [stdout]    |
[INFO] [stdout] 23 |     #[ink(message, payable)] // ... or specify payable inline.
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 7 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 277) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:278:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:279:3
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[ink::contract]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:281:3
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[ink(storage)]
[INFO] [stdout]   |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:286:3
[INFO] [stdout]    |
[INFO] [stdout] 11 | #[ink(constructor)]
[INFO] [stdout]    |   ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:291:7
[INFO] [stdout]    |
[INFO] [stdout] 16 |     #[ink(message)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:297:7
[INFO] [stdout]    |
[INFO] [stdout] 22 |     #[ink(message)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 391) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ink_env`
[INFO] [stdout]  --> src/lib.rs:392:1
[INFO] [stdout]   |
[INFO] [stdout] 3 | ink_env::test::run_test::<ink_env::DefaultEnvironment, _>(|_| {
[INFO] [stdout]   | ^^^^^^^ use of undeclared type or module `ink_env`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ink_env`
[INFO] [stdout]  --> src/lib.rs:392:27
[INFO] [stdout]   |
[INFO] [stdout] 3 | ink_env::test::run_test::<ink_env::DefaultEnvironment, _>(|_| {
[INFO] [stdout]   |                           ^^^^^^^ use of undeclared type or module `ink_env`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ink_env`
[INFO] [stdout]  --> src/lib.rs:393:14
[INFO] [stdout]   |
[INFO] [stdout] 4 | let caller = ink_env::caller::<ink_env::DefaultEnvironment>();
[INFO] [stdout]   |              ^^^^^^^ use of undeclared type or module `ink_env`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ink_env`
[INFO] [stdout]  --> src/lib.rs:393:32
[INFO] [stdout]   |
[INFO] [stdout] 4 | let caller = ink_env::caller::<ink_env::DefaultEnvironment>();
[INFO] [stdout]   |                                ^^^^^^^ use of undeclared type or module `ink_env`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - trait_definition (line 546) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:547:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:549:3
[INFO] [stdout]   |
[INFO] [stdout] 5 | #[ink::contract]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ink_lang`
[INFO] [stdout]  --> src/lib.rs:552:6
[INFO] [stdout]   |
[INFO] [stdout] 8 |    #[ink_lang::trait_definition]
[INFO] [stdout]   |      ^^^^^^^^ use of undeclared type or module `ink_lang`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:555:10
[INFO] [stdout]    |
[INFO] [stdout] 11 |        #[ink(constructor)]
[INFO] [stdout]    |          ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:559:10
[INFO] [stdout]    |
[INFO] [stdout] 15 |        #[ink(message)]
[INFO] [stdout]    |          ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:563:7
[INFO] [stdout]    |
[INFO] [stdout] 19 |     #[ink(storage)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:570:11
[INFO] [stdout]    |
[INFO] [stdout] 26 |         #[ink(constructor)]
[INFO] [stdout]    |           ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:576:11
[INFO] [stdout]    |
[INFO] [stdout] 32 |         #[ink(message)]
[INFO] [stdout]    |           ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope
[INFO] [stdout]   --> src/lib.rs:556:31
[INFO] [stdout]    |
[INFO] [stdout] 12 |        fn new(initial_supply: Balance) -> Self;
[INFO] [stdout]    |                               ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope
[INFO] [stdout]   --> src/lib.rs:560:34
[INFO] [stdout]    |
[INFO] [stdout] 16 |        fn total_supply(&self) -> Balance;
[INFO] [stdout]    |                                  ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope
[INFO] [stdout]   --> src/lib.rs:565:23
[INFO] [stdout]    |
[INFO] [stdout] 21 |         total_supply: Balance,
[INFO] [stdout]    |                       ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope
[INFO] [stdout]   --> src/lib.rs:571:32
[INFO] [stdout]    |
[INFO] [stdout] 27 |         fn new(initial_supply: Balance) -> Self {
[INFO] [stdout]    |                                ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope
[INFO] [stdout]   --> src/lib.rs:577:35
[INFO] [stdout]    |
[INFO] [stdout] 33 |         fn total_supply(&self) -> Balance {
[INFO] [stdout]    |                                   ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 13 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 402) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:403:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:405:3
[INFO] [stdout]   |
[INFO] [stdout] 5 | #[ink::contract]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:407:7
[INFO] [stdout]   |
[INFO] [stdout] 7 |     #[ink(storage)]
[INFO] [stdout]   |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:411:11
[INFO] [stdout]    |
[INFO] [stdout] 11 |         #[ink(constructor)]
[INFO] [stdout]    |           ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:419:11
[INFO] [stdout]    |
[INFO] [stdout] 19 |         #[ink(message, payable)]
[INFO] [stdout]    |           ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ink_env`
[INFO] [stdout]   --> src/lib.rs:415:13
[INFO] [stdout]    |
[INFO] [stdout] 15 |             ink_env::debug_println(&message);
[INFO] [stdout]    |             ^^^^^^^ use of undeclared type or module `ink_env`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ink_env`
[INFO] [stdout]   --> src/lib.rs:424:13
[INFO] [stdout]    |
[INFO] [stdout] 24 |             ink_env::debug_println(&message);
[INFO] [stdout]    |             ^^^^^^^ use of undeclared type or module `ink_env`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `env` found for struct `main::greeter::Greeter` in the current scope
[INFO] [stdout]   --> src/lib.rs:413:32
[INFO] [stdout]    |
[INFO] [stdout] 8  |     pub struct Greeter;
[INFO] [stdout]    |     ------------------- function or associated item `env` not found for this
[INFO] [stdout] ...
[INFO] [stdout] 13 |             let caller = Self::env().caller();
[INFO] [stdout]    |                                ^^^ function or associated item not found in `main::greeter::Greeter`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `env` found for mutable reference `&mut main::greeter::Greeter` in the current scope
[INFO] [stdout]   --> src/lib.rs:421:31
[INFO] [stdout]    |
[INFO] [stdout] 21 |             let caller = self.env().caller();
[INFO] [stdout]    |                               ^^^ method not found in `&mut main::greeter::Greeter`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `env` found for mutable reference `&mut main::greeter::Greeter` in the current scope
[INFO] [stdout]   --> src/lib.rs:422:30
[INFO] [stdout]    |
[INFO] [stdout] 22 |             let value = self.env().transferred_balance();
[INFO] [stdout]    |                              ^^^ method not found in `&mut main::greeter::Greeter`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599.
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - contract (line 439) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `ink_lang`
[INFO] [stdout]  --> src/lib.rs:440:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ink_lang as ink;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^ no `ink_lang` external crate
[INFO] [stdout] 
[INFO] [stdout] error: cannot determine resolution for the attribute macro `ink::contract`
[INFO] [stdout]  --> src/lib.rs:442:3
[INFO] [stdout]   |
[INFO] [stdout] 5 | #[ink::contract]
[INFO] [stdout]   |   ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: import resolution is stuck, try simplifying macro imports
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]  --> src/lib.rs:445:7
[INFO] [stdout]   |
[INFO] [stdout] 8 |     #[ink(event)]
[INFO] [stdout]   |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:452:7
[INFO] [stdout]    |
[INFO] [stdout] 15 |     #[ink(storage)]
[INFO] [stdout]    |       ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:459:11
[INFO] [stdout]    |
[INFO] [stdout] 22 |         #[ink(constructor)]
[INFO] [stdout]    |           ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error: cannot find attribute `ink` in this scope
[INFO] [stdout]   --> src/lib.rs:470:11
[INFO] [stdout]    |
[INFO] [stdout] 33 |         #[ink(message)]
[INFO] [stdout]    |           ^^^ help: a built-in attribute with a similar name exists: `link`
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `AccountId` in this scope
[INFO] [stdout]   --> src/lib.rs:447:22
[INFO] [stdout]    |
[INFO] [stdout] 9  |     pub struct Transferred {
[INFO] [stdout]    |                           - help: you might be missing a type parameter: `<AccountId>`
[INFO] [stdout] 10 |         from: Option<AccountId>,
[INFO] [stdout]    |                      ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `AccountId` in this scope
[INFO] [stdout]   --> src/lib.rs:448:20
[INFO] [stdout]    |
[INFO] [stdout] 9  |     pub struct Transferred {
[INFO] [stdout]    |                           - help: you might be missing a type parameter: `<AccountId>`
[INFO] [stdout] 10 |         from: Option<AccountId>,
[INFO] [stdout] 11 |         to: Option<AccountId>,
[INFO] [stdout]    |                    ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope
[INFO] [stdout]   --> src/lib.rs:449:16
[INFO] [stdout]    |
[INFO] [stdout] 12 |         value: Balance,
[INFO] [stdout]    |                ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope
[INFO] [stdout]   --> src/lib.rs:454:23
[INFO] [stdout]    |
[INFO] [stdout] 17 |         total_supply: Balance,
[INFO] [stdout]    |                       ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope
[INFO] [stdout]   --> src/lib.rs:460:36
[INFO] [stdout]    |
[INFO] [stdout] 23 |         pub fn new(initial_supply: Balance) -> Self {
[INFO] [stdout]    |                                    ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `Balance` in this scope
[INFO] [stdout]   --> src/lib.rs:471:39
[INFO] [stdout]    |
[INFO] [stdout] 34 |         pub fn total_supply(&self) -> Balance {
[INFO] [stdout]    |                                       ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `env` found for struct `main::erc20::Erc20` in the current scope
[INFO] [stdout]   --> src/lib.rs:461:32
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub struct Erc20 {
[INFO] [stdout]    |     ---------------- function or associated item `env` not found for this
[INFO] [stdout] ...
[INFO] [stdout] 24 |             let caller = Self::env().caller();
[INFO] [stdout]    |                                ^^^ function or associated item not found in `main::erc20::Erc20`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no function or associated item named `env` found for struct `main::erc20::Erc20` in the current scope
[INFO] [stdout]   --> src/lib.rs:462:19
[INFO] [stdout]    |
[INFO] [stdout] 16 |     pub struct Erc20 {
[INFO] [stdout]    |     ---------------- function or associated item `env` not found for this
[INFO] [stdout] ...
[INFO] [stdout] 25 |             Self::env().emit_event(Transferred {
[INFO] [stdout]    |                   ^^^ function or associated item not found in `main::erc20::Erc20`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 14 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0599.
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - contract (line 116)
[INFO] [stdout]     src/lib.rs - contract (line 148)
[INFO] [stdout]     src/lib.rs - contract (line 163)
[INFO] [stdout]     src/lib.rs - contract (line 210)
[INFO] [stdout]     src/lib.rs - contract (line 239)
[INFO] [stdout]     src/lib.rs - contract (line 277)
[INFO] [stdout]     src/lib.rs - contract (line 315)
[INFO] [stdout]     src/lib.rs - contract (line 354)
[INFO] [stdout]     src/lib.rs - contract (line 391)
[INFO] [stdout]     src/lib.rs - contract (line 402)
[INFO] [stdout]     src/lib.rs - contract (line 439)
[INFO] [stdout]     src/lib.rs - contract (line 489)
[INFO] [stdout]     src/lib.rs - contract (line 71)
[INFO] [stdout]     src/lib.rs - contract (line 81)
[INFO] [stdout]     src/lib.rs - test (line 611)
[INFO] [stdout]     src/lib.rs - trait_definition (line 524)
[INFO] [stdout]     src/lib.rs - trait_definition (line 546)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 17 failed; 0 ignored; 0 measured; 0 filtered out
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "7c4fa6d0dab6db7dc53889a64146fae32cb913c47988ddb9afa6267fd34242c8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7c4fa6d0dab6db7dc53889a64146fae32cb913c47988ddb9afa6267fd34242c8", kill_on_drop: false }`
[INFO] [stdout] 7c4fa6d0dab6db7dc53889a64146fae32cb913c47988ddb9afa6267fd34242c8
