[INFO] fetching crate gotgraph 0.2.0...
[INFO] testing gotgraph-0.2.0 against 1.100.0-beta.13+cargoflags=--release for beta-release-1.101-2
[INFO] extracting crate gotgraph 0.2.0 into /workspace/builds/worker-7-tc1/source
[INFO] started tweaking crates.io crate gotgraph 0.2.0
[INFO] removed 0 missing tests
[INFO] finished tweaking crates.io crate gotgraph 0.2.0
[INFO] tweaked toml for crates.io crate gotgraph 0.2.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate gotgraph 0.2.0 on toolchain 1.100.0-beta.13
[INFO] running `"cargo" "+1.100.0-beta.13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"`
[INFO] crate crates.io crate gotgraph 0.2.0 already has a lockfile, it will not be regenerated
[INFO] running `"cargo" "+1.100.0-beta.13" "fetch" "--manifest-path" "Cargo.toml"`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded windows-link v0.2.0
[INFO] [stderr]   Downloaded target-triple v0.1.4
[INFO] [stderr]   Downloaded trybuild v1.0.111
[INFO] [stderr]   Downloaded windows-sys v0.61.1
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"`
[INFO] [stdout] be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac
[INFO] running `"docker" "start" "be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac"`
[INFO] running `"docker" "inspect" "be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "metadata" "--no-deps" "--format-version=1"`
[INFO] running `"docker" "inspect" "be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "build" "--frozen" "--message-format=json" "--release"`
[INFO] [stderr]    Compiling gotgraph v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: associated function `end` is never used
[INFO] [stdout]   --> src/vec_graph.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | impl NodeIx {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 31 |     fn end() -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.63s
[INFO] running `"docker" "inspect" "be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "test" "--frozen" "--no-run" "--message-format=json" "--release"`
[INFO] [stderr]    Compiling proc-macro2 v1.0.101
[INFO] [stderr]    Compiling unicode-ident v1.0.19
[INFO] [stderr]    Compiling quote v1.0.41
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling target-triple v0.1.4
[INFO] [stderr]    Compiling winnow v0.7.13
[INFO] [stderr]    Compiling itoa v1.0.15
[INFO] [stderr]    Compiling memchr v2.7.6
[INFO] [stderr]    Compiling ryu v1.0.20
[INFO] [stderr]    Compiling toml_writer v1.0.3
[INFO] [stderr]    Compiling glob v0.3.3
[INFO] [stderr]    Compiling termcolor v1.4.1
[INFO] [stdout] warning: associated function `end` is never used
[INFO] [stdout]   --> src/vec_graph.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | impl NodeIx {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 31 |     fn end() -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling serde_spanned v1.0.2
[INFO] [stderr]    Compiling toml_datetime v0.7.2
[INFO] [stderr]    Compiling syn v2.0.106
[INFO] [stderr]    Compiling toml_parser v1.0.3
[INFO] [stderr]    Compiling toml v0.9.7
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling trybuild v1.0.111
[INFO] [stderr]    Compiling gotgraph v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: associated function `end` is never used
[INFO] [stdout]   --> src/vec_graph.rs:31:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | impl NodeIx {
[INFO] [stdout]    | ----------- associated function in this implementation
[INFO] [stdout] 31 |     fn end() -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 27.72s
[INFO] running `"docker" "inspect" "be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "test" "--frozen" "--release"`
[INFO] [stderr] warning: associated function `end` is never used
[INFO] [stderr]   --> src/vec_graph.rs:31:8
[INFO] [stderr]    |
[INFO] [stderr] 30 | impl NodeIx {
[INFO] [stderr]    | ----------- associated function in this implementation
[INFO] [stderr] 31 |     fn end() -> Self {
[INFO] [stderr]    |        ^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `gotgraph` (lib) generated 1 warning
[INFO] [stderr] warning: `gotgraph` (lib test) generated 1 warning (1 duplicate)
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.05s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/release/build/gotgraph/87556b9a8871a5ba/out/gotgraph-87556b9a8871a5ba)
[INFO] [stderr]      Running tests/comprehensive_api_tests.rs (/opt/rustwide/target/release/build/gotgraph/fb842ab65041cb0c/out/comprehensive_api_tests-fb842ab65041cb0c)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 21 tests
[INFO] [stdout] test test_endpoints_and_endpoints_unchecked ... ok
[INFO] [stdout] test test_incoming_edge_methods_mut ... ok
[INFO] [stdout] test test_connecting_edge_methods ... ok
[INFO] [stdout] test test_double_reverse ... ok
[INFO] [stdout] test test_connecting_edge_methods_mut ... ok
[INFO] [stdout] test test_outgoing_edge_methods ... ok
[INFO] [stdout] test test_mapping_transformations ... ok
[INFO] [stdout] test test_mapping_get_unchecked ... ok
[INFO] [stdout] test test_mapping_functionality ... ok
[INFO] [stdout] test test_node_pairs_mut_and_edge_pairs_mut ... ok
[INFO] [stdout] test test_remove_unchecked_methods ... ok
[INFO] [stdout] test test_reverse_empty_graph ... ok
[INFO] [stdout] test test_outgoing_edge_methods_mut ... ok
[INFO] [stdout] test test_node_pairs_and_edge_pairs ... ok
[INFO] [stdout] test test_unchecked_access_methods ... ok
[INFO] [stdout] test test_add_edge_unchecked ... ok
[INFO] [stdout] test test_reverse_single_node ... ok
[INFO] [stdout] test test_reverse_self_loop ... ok
[INFO] [stdout] test test_incoming_edge_methods ... ok
[INFO] [stdout] test test_reverse_graph ... ok
[INFO] [stdout] test test_edge_graph_comprehensive ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
[INFO] [stdout] 
[INFO] [stderr]      Running tests/nested_scoped_mut_bug_demo.rs (/opt/rustwide/target/release/build/gotgraph/a5010fc1bd64ebe0/out/nested_scoped_mut_bug_demo-a5010fc1bd64ebe0)
[INFO] [stderr]      Running tests/tarjan_comprehensive_test.rs (/opt/rustwide/target/release/build/gotgraph/0912b28605577b70/out/tarjan_comprehensive_test-0912b28605577b70)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test test_nested_scoped_mut_compiles ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 14 tests
[INFO] [stdout] test test_deep_recursion_pathological ... ok
[INFO] [stdout] test test_performance_benchmarks ... ok
[INFO] [stdout] test test_massive_graph_stress ... ok
[INFO] [stdout] test test_nested_cycles_single_scc ... ok
[INFO] [stdout] test test_deep_tree_structure ... ok
[INFO] [stdout] test test_parallel_edges ... ok
[INFO] [stdout] test test_empty_edges_after_nodes ... ok
[INFO] [stdout] test test_large_graph_performance ... ok
[INFO] [stdout] test test_tarjan_with_self_loops ... ok
[INFO] [stdout] test test_comprehensive_scc_detection ... ok
[INFO] [stdout] test test_tarjan_with_disconnected_components ... ok
[INFO] [stdout] test test_randomized_properties ... ok
[INFO] [stdout] test test_algorithm_properties ... ok
[INFO] [stdout] test test_tarjan_topological_ordering ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
[INFO] [stdout] 
[INFO] [stderr]      Running tests/tarjan_tests.rs (/opt/rustwide/target/release/build/gotgraph/2122272d6dc07531/out/tarjan_tests-2122272d6dc07531)
[INFO] [stdout] 
[INFO] [stdout] running 8 tests
[INFO] [stdout] test test_self_loop ... ok
[INFO] [stdout] test test_simple_cycle ... ok
[INFO] [stdout] test test_single_node ... ok
[INFO] [stdout] test test_scc_box_slice_properties ... ok
[INFO] [stdout] test test_two_separate_cycles ... ok
[INFO] [stdout] test test_empty_graph ... ok
[INFO] [stdout] test test_linear_graph_no_cycles ... ok
[INFO] [stdout] test test_complex_graph_multiple_sccs ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running tests/ui.rs (/opt/rustwide/target/release/build/gotgraph/261bcf0cc2653952/out/ui-261bcf0cc2653952)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stderr]     Checking gotgraph v0.2.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking gotgraph-tests v0.0.0 (/opt/rustwide/target/tests/trybuild/gotgraph)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.52s
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr] test tests/compile_fail/cross_scope_node_tags.rs ... mismatch
[INFO] [stderr] 
[INFO] [stderr] EXPECTED:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]  --> tests/compile_fail/cross_scope_node_tags.rs:8:9
[INFO] [stderr]   |
[INFO] [stderr] 7 |     let node_from_graph1 = graph1.scope_mut(|mut ctx| {
[INFO] [stderr]   |                                              -------- return type of closure is NodeTag<'2, NodeIx>
[INFO] [stderr]   |                                              |
[INFO] [stderr]   |                                              has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stdout] test test_compile_fail ... FAILED
[INFO] [stderr] 8 |         ctx.add_node(42)
[INFO] [stdout] 
[INFO] [stderr]   |         ^^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stdout] failures:
[INFO] [stderr]   |
[INFO] [stdout] 
[INFO] [stderr]   = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stdout] ---- test_compile_fail stdout ----
[INFO] [stderr]   = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stdout] 
[INFO] [stderr]   = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stdout] thread 'test_compile_fail' (894) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/trybuild-1.0.111/src/run.rs:102:13:
[INFO] [stderr] 
[INFO] [stdout] 6 of 9 tests failed
[INFO] [stderr] error[E0521]: borrowed data escapes outside of closure
[INFO] [stdout] stack backtrace:
[INFO] [stderr]   --> tests/compile_fail/cross_scope_node_tags.rs:15:9
[INFO] [stdout]    0:     0x567765620c81 - <<std[f3a103f8b3fbc6]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[a2c1a7cd948629ec]::fmt::Display>::fmt
[INFO] [stderr]    |
[INFO] [stdout]    1:     0x567765636f6a - core[a2c1a7cd948629ec]::fmt::write
[INFO] [stderr]  7 |     let node_from_graph1 = graph1.scope_mut(|mut ctx| {
[INFO] [stdout]    2:     0x5677656254cc - <alloc[9de6908353064a78]::vec::Vec<u8> as core[a2c1a7cd948629ec]::io::write::Write>::write_fmt
[INFO] [stderr]    |         ---------------- `node_from_graph1` declared here, outside of the closure body
[INFO] [stdout]    3:     0x5677655fa0e6 - std[f3a103f8b3fbc6]::panicking::default_hook::{closure#0}
[INFO] [stderr] ...
[INFO] [stdout]    4:     0x5677656181d9 - std[f3a103f8b3fbc6]::panicking::default_hook
[INFO] [stderr] 12 |     graph2.scope_mut(|mut ctx| {
[INFO] [stdout]    5:     0x5677655b1830 - test[4d2796dde4b18a79]::test_main_inner::{closure#0}
[INFO] [stderr]    |                       ------- `ctx` is a reference that is only valid in the closure body
[INFO] [stdout]    6:     0x567765618392 - std[f3a103f8b3fbc6]::panicking::panic_with_hook
[INFO] [stderr] ...
[INFO] [stdout]    7:     0x5677655fa192 - std[f3a103f8b3fbc6]::panicking::panic_handler::{closure#0}
[INFO] [stderr] 15 |         ctx.add_edge("cross", node_from_graph1, n1);
[INFO] [stdout]    8:     0x5677655f3449 - std[f3a103f8b3fbc6]::sys::backtrace::__rust_end_short_backtrace::<std[f3a103f8b3fbc6]::panicking::panic_handler::{closure#0}, !>
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ctx` escapes the closure body here
[INFO] [stdout]    9:     0x5677655fad9d - __rustc[72b30b8c63551d82]::rust_begin_unwind
[INFO] [stderr]    |
[INFO] [stdout]   10:     0x5677656376dc - core[a2c1a7cd948629ec]::panicking::panic_fmt
[INFO] [stderr]    = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stdout]   11:     0x56776550156b - <trybuild[c7ef74d032022e74]::Runner>::run
[INFO] [stderr]    = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stdout]   12:     0x567765504630 - <trybuild[c7ef74d032022e74]::TestCases as core[a2c1a7cd948629ec]::ops::drop::Drop>::drop
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stdout]   13:     0x5677654fb848 - ui[b3b501a0703301c3]::test_compile_fail
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stdout]   14:     0x5677654fba49 - <ui[b3b501a0703301c3]::test_compile_fail::{closure#0} as core[a2c1a7cd948629ec]::ops::function::FnOnce<()>>::call_once
[INFO] [stderr] 
[INFO] [stdout]   15:     0x5677655a4c7b - test[4d2796dde4b18a79]::__rust_begin_short_backtrace::<core[a2c1a7cd948629ec]::result::Result<(), alloc[9de6908353064a78]::string::String>, fn() -> core[a2c1a7cd948629ec]::result::Result<(), alloc[9de6908353064a78]::string::String>>
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stdout]   16:     0x5677655b1e55 - test[4d2796dde4b18a79]::run_test::{closure#0}
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stdout]   17:     0x5677655ab244 - std[f3a103f8b3fbc6]::sys::backtrace::__rust_begin_short_backtrace::<test[4d2796dde4b18a79]::run_test::{closure#1}, ()>
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stdout]   18:     0x5677655b4ee2 - <std[f3a103f8b3fbc6]::thread::lifecycle::spawn_unchecked<test[4d2796dde4b18a79]::run_test::{closure#1}, ()>::{closure#1} as core[a2c1a7cd948629ec]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stderr]  --> tests/compile_fail/cross_scope_node_tags.rs:8:9
[INFO] [stdout]   19:     0x56776561fedf - <std[f3a103f8b3fbc6]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stderr]   |
[INFO] [stdout]   20:     0x7d8fccaa2dfa - <unknown>
[INFO] [stderr] 7 |     let node_from_graph1 = graph1.scope_mut(|mut ctx| {
[INFO] [stdout]   21:     0x7d8fccb363d4 - clone
[INFO] [stderr]   |                                              -------- return type of closure is NodeTag<'2, NodeIx>
[INFO] [stdout]   22:                0x0 - <unknown>
[INFO] [stderr]   |                                              |
[INFO] [stdout] 
[INFO] [stderr]   |                                              has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 8 |         ctx.add_node(42)
[INFO] [stderr]   |         ^^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stderr]   |
[INFO] [stderr]   = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]   = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]   = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] 
[INFO] [stderr] error[E0521]: borrowed data escapes outside of closure
[INFO] [stderr]   --> tests/compile_fail/cross_scope_node_tags.rs:15:9
[INFO] [stderr]    |
[INFO] [stderr]  7 |     let node_from_graph1 = graph1.scope_mut(|mut ctx| {
[INFO] [stderr]    |         ---------------- `node_from_graph1` declared here, outside of the closure body
[INFO] [stderr] ...
[INFO] [stderr] 12 |     graph2.scope_mut(|mut ctx| {
[INFO] [stderr]    |                       ------- `ctx` is only valid in the closure body
[INFO] [stderr] ...
[INFO] [stderr] 15 |         ctx.add_edge("cross", node_from_graph1, n1);
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ctx` escapes the closure body here
[INFO] [stderr]    |
[INFO] [stderr]    = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]    = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning
[INFO] [stderr]       your test with the environment variable TRYBUILD=overwrite
[INFO] [stderr] 
[INFO] [stderr] test tests/compile_fail/edge_map_escape_scope.rs ... mismatch
[INFO] [stderr] 
[INFO] [stderr] EXPECTED:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/edge_map_escape_scope.rs:15:9
[INFO] [stderr]    |
[INFO] [stderr] 13 |     let escaped_map = graph.scope(|ctx| {
[INFO] [stderr]    |                                    ---- return type of closure `impl Mapping<<gotgraph::graph::Context<'_, &gotgraph::vec_graph::VecGraph<i32, &str>> as gotgraph::graph::Graph>::EdgeIx, usize>` contains a lifetime `'2`
[INFO] [stderr]    |                                    |
[INFO] [stderr]    |                                    has type `&'1 gotgraph::graph::Context<'_, &gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 14 |         let edge_map = ctx.init_edge_map(|_, edge| edge.len());
[INFO] [stderr] 15 |         edge_map // ERROR: edge map cannot escape the scope
[INFO] [stderr]    |         ^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stderr]    |
[INFO] [stderr]    = note: requirement occurs because of the type `EdgeTag<'_, EdgeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]    = note: the struct `EdgeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] 
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/edge_map_escape_scope.rs:15:9
[INFO] [stderr]    |
[INFO] [stderr] 13 |     let escaped_map = graph.scope(|ctx| {
[INFO] [stderr]    |                                    ---- return type of closure is impl Mapping<<gotgraph::graph::Context<'4, &gotgraph::vec_graph::VecGraph<i32, &str>> as gotgraph::graph::Graph>::EdgeIx, usize>
[INFO] [stderr]    |                                    |
[INFO] [stderr]    |                                    has type `&gotgraph::graph::Context<'3, &gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 14 |         let edge_map = ctx.init_edge_map(|_, edge| edge.len());
[INFO] [stderr] 15 |         edge_map // ERROR: edge map cannot escape the scope
[INFO] [stderr]    |         ^^^^^^^^ returning this value requires that `'3` must outlive `'4`
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] 
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/edge_map_escape_scope.rs:15:9
[INFO] [stderr]    |
[INFO] [stderr] 13 |     let escaped_map = graph.scope(|ctx| {
[INFO] [stderr]    |                                    ---- return type of closure `impl Mapping<<gotgraph::graph::Context<'_, &gotgraph::vec_graph::VecGraph<i32, &str>> as gotgraph::graph::Graph>::EdgeIx, usize>` contains a lifetime `'2`
[INFO] [stderr]    |                                    |
[INFO] [stderr]    |                                    has type `&'1 gotgraph::graph::Context<'_, &gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 14 |         let edge_map = ctx.init_edge_map(|_, edge| edge.len());
[INFO] [stderr] 15 |         edge_map // ERROR: edge map cannot escape the scope
[INFO] [stderr]    |         ^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stderr] 
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/edge_map_escape_scope.rs:15:9
[INFO] [stderr]    |
[INFO] [stderr] 13 |     let escaped_map = graph.scope(|ctx| {
[INFO] [stderr]    |                                    ---- return type of closure is impl Mapping<<gotgraph::graph::Context<'4, &gotgraph::vec_graph::VecGraph<i32, &str>> as gotgraph::graph::Graph>::EdgeIx, usize>
[INFO] [stderr]    |                                    |
[INFO] [stderr]    |                                    has type `&gotgraph::graph::Context<'3, &gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 14 |         let edge_map = ctx.init_edge_map(|_, edge| edge.len());
[INFO] [stderr] 15 |         edge_map // ERROR: edge map cannot escape the scope
[INFO] [stderr]    |         ^^^^^^^^ returning this value requires that `'3` must outlive `'4`
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning
[INFO] [stderr]       your test with the environment variable TRYBUILD=overwrite
[INFO] [stderr] 
[INFO] [stderr] test tests/compile_fail/edge_tag_escape_scope.rs ... ok
[INFO] [stderr] test tests/compile_fail/map_with_wrong_scope_tags.rs ... mismatch
[INFO] [stderr] 
[INFO] [stderr] EXPECTED:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/map_with_wrong_scope_tags.rs:12:9
[INFO] [stderr]    |
[INFO] [stderr] 11 |     let saved_node_tag = graph.scope_mut(|mut ctx| {
[INFO] [stderr]    |                                           -------- return type of closure is NodeTag<'2, NodeIx>
[INFO] [stderr]    |                                           |
[INFO] [stderr]    |                                           has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 12 |         ctx.add_node(3)
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stderr]    |
[INFO] [stderr]    = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]    = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] 
[INFO] [stderr] error[E0521]: borrowed data escapes outside of closure
[INFO] [stderr]   --> tests/compile_fail/map_with_wrong_scope_tags.rs:17:24
[INFO] [stderr]    |
[INFO] [stderr] 11 |     let saved_node_tag = graph.scope_mut(|mut ctx| {
[INFO] [stderr]    |         -------------- `saved_node_tag` declared here, outside of the closure body
[INFO] [stderr] ...
[INFO] [stderr] 16 |     graph.scope(|ctx| {
[INFO] [stderr]    |                  --- `ctx` is a reference that is only valid in the closure body
[INFO] [stderr] 17 |         let node_map = ctx.init_node_map(|_, &data| data);
[INFO] [stderr]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ctx` escapes the closure body here
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] 
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/map_with_wrong_scope_tags.rs:12:9
[INFO] [stderr]    |
[INFO] [stderr] 11 |     let saved_node_tag = graph.scope_mut(|mut ctx| {
[INFO] [stderr]    |                                           -------- return type of closure is NodeTag<'2, NodeIx>
[INFO] [stderr]    |                                           |
[INFO] [stderr]    |                                           has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 12 |         ctx.add_node(3)
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stderr]    |
[INFO] [stderr]    = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]    = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] 
[INFO] [stderr] error[E0521]: borrowed data escapes outside of closure
[INFO] [stderr]   --> tests/compile_fail/map_with_wrong_scope_tags.rs:17:24
[INFO] [stderr]    |
[INFO] [stderr] 11 |     let saved_node_tag = graph.scope_mut(|mut ctx| {
[INFO] [stderr]    |         -------------- `saved_node_tag` declared here, outside of the closure body
[INFO] [stderr] ...
[INFO] [stderr] 16 |     graph.scope(|ctx| {
[INFO] [stderr]    |                  --- `ctx` is only valid in the closure body
[INFO] [stderr] 17 |         let node_map = ctx.init_node_map(|_, &data| data);
[INFO] [stderr]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ctx` escapes the closure body here
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning
[INFO] [stderr]       your test with the environment variable TRYBUILD=overwrite
[INFO] [stderr] 
[INFO] [stderr] test tests/compile_fail/nested_scope_tag_misuse.rs ... mismatch
[INFO] [stderr] 
[INFO] [stderr] EXPECTED:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error[E0521]: borrowed data escapes outside of closure
[INFO] [stderr]   --> tests/compile_fail/nested_scope_tag_misuse.rs:17:13
[INFO] [stderr]    |
[INFO] [stderr]  7 |         let outer_node = outer_ctx.add_node(1);
[INFO] [stderr]    |             ---------- `outer_node` declared here, outside of the closure body
[INFO] [stderr] ...
[INFO] [stderr] 12 |         inner_graph.scope_mut(|mut inner_ctx| {
[INFO] [stderr]    |                                ------------- `inner_ctx` is a reference that is only valid in the closure body
[INFO] [stderr] ...
[INFO] [stderr] 17 |             inner_ctx.add_edge("bad", outer_node, inner_node);
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `inner_ctx` escapes the closure body here
[INFO] [stderr]    |
[INFO] [stderr]    = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]    = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] 
[INFO] [stderr] error[E0521]: borrowed data escapes outside of closure
[INFO] [stderr]   --> tests/compile_fail/nested_scope_tag_misuse.rs:17:13
[INFO] [stderr]    |
[INFO] [stderr]  6 |     outer_graph.scope_mut(|mut outer_ctx| {
[INFO] [stderr]    |                            -------------
[INFO] [stderr]    |                            |
[INFO] [stderr]    |                            `outer_ctx` is a reference that is only valid in the closure body
[INFO] [stderr]    |                            has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] ...
[INFO] [stderr] 17 |             inner_ctx.add_edge("bad", outer_node, inner_node);
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |             |
[INFO] [stderr]    |             `outer_ctx` escapes the closure body here
[INFO] [stderr]    |             argument requires that `'1` must outlive `'static`
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] 
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error[E0521]: borrowed data escapes outside of closure
[INFO] [stderr]   --> tests/compile_fail/nested_scope_tag_misuse.rs:17:13
[INFO] [stderr]    |
[INFO] [stderr]  7 |         let outer_node = outer_ctx.add_node(1);
[INFO] [stderr]    |             ---------- `outer_node` declared here, outside of the closure body
[INFO] [stderr] ...
[INFO] [stderr] 12 |         inner_graph.scope_mut(|mut inner_ctx| {
[INFO] [stderr]    |                                ------------- `inner_ctx` is only valid in the closure body
[INFO] [stderr] ...
[INFO] [stderr] 17 |             inner_ctx.add_edge("bad", outer_node, inner_node);
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `inner_ctx` escapes the closure body here
[INFO] [stderr]    |
[INFO] [stderr]    = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]    = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] 
[INFO] [stderr] error[E0521]: borrowed data escapes outside of closure
[INFO] [stderr]   --> tests/compile_fail/nested_scope_tag_misuse.rs:17:13
[INFO] [stderr]    |
[INFO] [stderr]  6 |     outer_graph.scope_mut(|mut outer_ctx| {
[INFO] [stderr]    |                            -------------
[INFO] [stderr]    |                            |
[INFO] [stderr]    |                            `outer_ctx` is only valid in the closure body
[INFO] [stderr]    |                            has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] ...
[INFO] [stderr] 17 |             inner_ctx.add_edge("bad", outer_node, inner_node);
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |             |
[INFO] [stderr]    |             `outer_ctx` escapes the closure body here
[INFO] [stderr]    |             argument requires that `'1` must outlive `'static`
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning
[INFO] [stderr]       your test with the environment variable TRYBUILD=overwrite
[INFO] [stderr] 
[INFO] [stderr] test tests/compile_fail/nested_scoped_mut_clear_bug.rs ... ok
[INFO] [stderr] test tests/compile_fail/node_map_escape_scope.rs ... mismatch
[INFO] [stderr] 
[INFO] [stderr] EXPECTED:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/node_map_escape_scope.rs:14:9
[INFO] [stderr]    |
[INFO] [stderr] 12 |     let escaped_map = graph.scope(|ctx| {
[INFO] [stderr]    |                                    ---- return type of closure `impl Mapping<<gotgraph::graph::Context<'_, &gotgraph::vec_graph::VecGraph<i32, &str>> as gotgraph::graph::Graph>::NodeIx, i32>` contains a lifetime `'2`
[INFO] [stderr]    |                                    |
[INFO] [stderr]    |                                    has type `&'1 gotgraph::graph::Context<'_, &gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 13 |         let node_map = ctx.init_node_map(|_, &data| data * 2);
[INFO] [stderr] 14 |         node_map // ERROR: node map cannot escape the scope
[INFO] [stderr]    |         ^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stderr]    |
[INFO] [stderr]    = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]    = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] 
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/node_map_escape_scope.rs:14:9
[INFO] [stderr]    |
[INFO] [stderr] 12 |     let escaped_map = graph.scope(|ctx| {
[INFO] [stderr]    |                                    ---- return type of closure is impl Mapping<<gotgraph::graph::Context<'4, &gotgraph::vec_graph::VecGraph<i32, &str>> as gotgraph::graph::Graph>::NodeIx, i32>
[INFO] [stderr]    |                                    |
[INFO] [stderr]    |                                    has type `&gotgraph::graph::Context<'3, &gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 13 |         let node_map = ctx.init_node_map(|_, &data| data * 2);
[INFO] [stderr] 14 |         node_map // ERROR: node map cannot escape the scope
[INFO] [stderr]    |         ^^^^^^^^ returning this value requires that `'3` must outlive `'4`
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] 
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/node_map_escape_scope.rs:14:9
[INFO] [stderr]    |
[INFO] [stderr] 12 |     let escaped_map = graph.scope(|ctx| {
[INFO] [stderr]    |                                    ---- return type of closure `impl Mapping<<gotgraph::graph::Context<'_, &gotgraph::vec_graph::VecGraph<i32, &str>> as gotgraph::graph::Graph>::NodeIx, i32>` contains a lifetime `'2`
[INFO] [stderr]    |                                    |
[INFO] [stderr]    |                                    has type `&'1 gotgraph::graph::Context<'_, &gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 13 |         let node_map = ctx.init_node_map(|_, &data| data * 2);
[INFO] [stderr] 14 |         node_map // ERROR: node map cannot escape the scope
[INFO] [stderr]    |         ^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stderr] 
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/node_map_escape_scope.rs:14:9
[INFO] [stderr]    |
[INFO] [stderr] 12 |     let escaped_map = graph.scope(|ctx| {
[INFO] [stderr]    |                                    ---- return type of closure is impl Mapping<<gotgraph::graph::Context<'4, &gotgraph::vec_graph::VecGraph<i32, &str>> as gotgraph::graph::Graph>::NodeIx, i32>
[INFO] [stderr]    |                                    |
[INFO] [stderr]    |                                    has type `&gotgraph::graph::Context<'3, &gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 13 |         let node_map = ctx.init_node_map(|_, &data| data * 2);
[INFO] [stderr] 14 |         node_map // ERROR: node map cannot escape the scope
[INFO] [stderr]    |         ^^^^^^^^ returning this value requires that `'3` must outlive `'4`
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning
[INFO] [stderr]       your test with the environment variable TRYBUILD=overwrite
[INFO] [stderr] 
[INFO] [stderr] test tests/compile_fail/node_tag_escape_scope.rs ... ok
[INFO] [stderr] test tests/compile_fail/wrong_graph_edge_operation.rs ... mismatch
[INFO] [stderr] 
[INFO] [stderr] EXPECTED:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]  --> tests/compile_fail/wrong_graph_edge_operation.rs:9:9
[INFO] [stderr]   |
[INFO] [stderr] 8 |     let node1 = graph1.scope_mut(|mut ctx| {
[INFO] [stderr]   |                                   -------- return type of closure is NodeTag<'2, NodeIx>
[INFO] [stderr]   |                                   |
[INFO] [stderr]   |                                   has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 9 |         ctx.add_node(1)
[INFO] [stderr]   |         ^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stderr]   |
[INFO] [stderr]   = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]   = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]   = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] 
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/wrong_graph_edge_operation.rs:13:9
[INFO] [stderr]    |
[INFO] [stderr] 12 |     let node2 = graph2.scope_mut(|mut ctx| {
[INFO] [stderr]    |                                   -------- return type of closure is NodeTag<'2, NodeIx>
[INFO] [stderr]    |                                   |
[INFO] [stderr]    |                                   has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 13 |         ctx.add_node(2)
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stderr]    |
[INFO] [stderr]    = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]    = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] 
[INFO] [stderr] error[E0521]: borrowed data escapes outside of closure
[INFO] [stderr]   --> tests/compile_fail/wrong_graph_edge_operation.rs:19:9
[INFO] [stderr]    |
[INFO] [stderr]  8 |     let node1 = graph1.scope_mut(|mut ctx| {
[INFO] [stderr]    |         ----- `node1` declared here, outside of the closure body
[INFO] [stderr] ...
[INFO] [stderr] 17 |     graph1.scope_mut(|mut ctx| {
[INFO] [stderr]    |                       ------- `ctx` is a reference that is only valid in the closure body
[INFO] [stderr] 18 |         // ERROR: node2 belongs to different graph/scope
[INFO] [stderr] 19 |         ctx.add_edge("invalid", node1, node2);
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ctx` escapes the closure body here
[INFO] [stderr]    |
[INFO] [stderr]    = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]    = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] 
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]  --> tests/compile_fail/wrong_graph_edge_operation.rs:9:9
[INFO] [stderr]   |
[INFO] [stderr] 8 |     let node1 = graph1.scope_mut(|mut ctx| {
[INFO] [stderr]   |                                   -------- return type of closure is NodeTag<'2, NodeIx>
[INFO] [stderr]   |                                   |
[INFO] [stderr]   |                                   has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 9 |         ctx.add_node(1)
[INFO] [stderr]   |         ^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stderr]   |
[INFO] [stderr]   = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]   = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]   = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] 
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/wrong_graph_edge_operation.rs:13:9
[INFO] [stderr]    |
[INFO] [stderr] 12 |     let node2 = graph2.scope_mut(|mut ctx| {
[INFO] [stderr]    |                                   -------- return type of closure is NodeTag<'2, NodeIx>
[INFO] [stderr]    |                                   |
[INFO] [stderr]    |                                   has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] 13 |         ctx.add_node(2)
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
[INFO] [stderr]    |
[INFO] [stderr]    = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]    = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] 
[INFO] [stderr] error[E0521]: borrowed data escapes outside of closure
[INFO] [stderr]   --> tests/compile_fail/wrong_graph_edge_operation.rs:19:9
[INFO] [stderr]    |
[INFO] [stderr]  8 |     let node1 = graph1.scope_mut(|mut ctx| {
[INFO] [stderr]    |         ----- `node1` declared here, outside of the closure body
[INFO] [stderr] ...
[INFO] [stderr] 17 |     graph1.scope_mut(|mut ctx| {
[INFO] [stderr]    |                       ------- `ctx` is only valid in the closure body
[INFO] [stderr] 18 |         // ERROR: node2 belongs to different graph/scope
[INFO] [stderr] 19 |         ctx.add_edge("invalid", node1, node2);
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ctx` escapes the closure body here
[INFO] [stderr]    |
[INFO] [stderr]    = note: requirement occurs because of the type `NodeTag<'_, NodeIx>`, which makes the generic argument `'_` invariant
[INFO] [stderr]    = note: the struct `NodeTag<'scope, I>` is invariant over the parameter `'scope`
[INFO] [stderr]    = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] note: If the actual output is the correct output you can bless it by rerunning
[INFO] [stderr]       your test with the environment variable TRYBUILD=overwrite
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     test_compile_fail
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.84s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--test ui`
[INFO] running `"docker" "inspect" "be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac"`
[INFO] running `"docker" "rm" "-f" "be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac"`
[INFO] [stdout] be2fd859666477401304c4e14026e5d67dbaa0b4bccc21036688e872061fcaac
