[INFO] fetching crate gotgraph 0.2.0...
[INFO] testing gotgraph-0.2.0 against 1.101.0-beta.1+cargoflags=--release for beta-release-1.101-2
[INFO] extracting crate gotgraph 0.2.0 into /workspace/builds/worker-7-tc2/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-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate gotgraph 0.2.0 on toolchain 1.101.0-beta.1
[INFO] running `"cargo" "+1.101.0-beta.1" "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.101.0-beta.1" "fetch" "--manifest-path" "Cargo.toml"`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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] 1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509
[INFO] running `"docker" "start" "1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509"`
[INFO] running `"docker" "inspect" "1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509"`
[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" "1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "metadata" "--no-deps" "--format-version=1"`
[INFO] running `"docker" "inspect" "1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509"`
[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" "1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "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.65s
[INFO] running `"docker" "inspect" "1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509"`
[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" "1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "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 winnow v0.7.13
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling target-triple v0.1.4
[INFO] [stderr]    Compiling toml_writer v1.0.3
[INFO] [stderr]    Compiling itoa v1.0.15
[INFO] [stderr]    Compiling memchr v2.7.6
[INFO] [stderr]    Compiling ryu v1.0.20
[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 toml_datetime v0.7.2
[INFO] [stderr]    Compiling serde_spanned v1.0.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 25.45s
[INFO] running `"docker" "inspect" "1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509"`
[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" "1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "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/fd55f7ee2424ac42/out/gotgraph-fd55f7ee2424ac42)
[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] [stderr]      Running tests/comprehensive_api_tests.rs (/opt/rustwide/target/release/build/gotgraph/b33d535336dcb36b/out/comprehensive_api_tests-b33d535336dcb36b)
[INFO] [stdout] 
[INFO] [stdout] running 21 tests
[INFO] [stdout] test test_connecting_edge_methods_mut ... ok
[INFO] [stdout] test test_connecting_edge_methods ... ok
[INFO] [stdout] test test_endpoints_and_endpoints_unchecked ... ok
[INFO] [stdout] test test_node_pairs_and_edge_pairs ... ok
[INFO] [stdout] test test_edge_graph_comprehensive ... ok
[INFO] [stdout] test test_incoming_edge_methods_mut ... ok
[INFO] [stdout] test test_node_pairs_mut_and_edge_pairs_mut ... ok
[INFO] [stdout] test test_incoming_edge_methods ... ok
[INFO] [stdout] test test_add_edge_unchecked ... ok
[INFO] [stdout] test test_mapping_functionality ... ok
[INFO] [stdout] test test_outgoing_edge_methods ... ok
[INFO] [stdout] test test_outgoing_edge_methods_mut ... ok
[INFO] [stdout] test test_double_reverse ... ok
[INFO] [stdout] test test_reverse_empty_graph ... ok
[INFO] [stdout] test test_reverse_graph ... ok
[INFO] [stdout] test test_mapping_transformations ... ok
[INFO] [stdout] test test_reverse_self_loop ... ok
[INFO] [stdout] test test_mapping_get_unchecked ... ok
[INFO] [stdout] test test_reverse_single_node ... ok
[INFO] [stdout] test test_unchecked_access_methods ... ok
[INFO] [stdout] test test_remove_unchecked_methods ... ok
[INFO] [stderr]      Running tests/nested_scoped_mut_bug_demo.rs (/opt/rustwide/target/release/build/gotgraph/79a6b4c85266a39a/out/nested_scoped_mut_bug_demo-79a6b4c85266a39a)
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[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] [stderr]      Running tests/tarjan_comprehensive_test.rs (/opt/rustwide/target/release/build/gotgraph/b17359e85c8af9c4/out/tarjan_comprehensive_test-b17359e85c8af9c4)
[INFO] [stdout] 
[INFO] [stdout] running 14 tests
[INFO] [stdout] test test_algorithm_properties ... ok
[INFO] [stdout] test test_deep_recursion_pathological ... ok
[INFO] [stdout] test test_tarjan_with_disconnected_components ... ok
[INFO] [stdout] test test_nested_cycles_single_scc ... ok
[INFO] [stdout] test test_tarjan_with_self_loops ... ok
[INFO] [stdout] test test_randomized_properties ... ok
[INFO] [stdout] test test_tarjan_topological_ordering ... ok
[INFO] [stdout] test test_massive_graph_stress ... ok
[INFO] [stdout] test test_comprehensive_scc_detection ... ok
[INFO] [stdout] test test_deep_tree_structure ... ok
[INFO] [stdout] test test_empty_edges_after_nodes ... ok
[INFO] [stdout] test test_large_graph_performance ... ok
[INFO] [stdout] test test_performance_benchmarks ... ok
[INFO] [stderr]      Running tests/tarjan_tests.rs (/opt/rustwide/target/release/build/gotgraph/4899fa93d932bb92/out/tarjan_tests-4899fa93d932bb92)
[INFO] [stdout] test test_parallel_edges ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 8 tests
[INFO] [stdout] test test_single_node ... ok
[INFO] [stdout] test test_scc_box_slice_properties ... ok
[INFO] [stdout] test test_empty_graph ... ok
[INFO] [stdout] test test_self_loop ... ok
[INFO] [stdout] test test_two_separate_cycles ... ok
[INFO] [stdout] test test_simple_cycle ... ok
[INFO] [stdout] test test_complex_graph_multiple_sccs ... ok
[INFO] [stderr]      Running tests/ui.rs (/opt/rustwide/target/release/build/gotgraph/e7bfa2552bf66b4b/out/ui-e7bfa2552bf66b4b)
[INFO] [stdout] test test_linear_graph_no_cycles ... 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] [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.59s
[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] [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 a reference that 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] 
[INFO] [stderr] ACTUAL OUTPUT:
[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] [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 ... mismatch
[INFO] [stderr] 
[INFO] [stderr] EXPECTED:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/edge_tag_escape_scope.rs:11:9
[INFO] [stderr]    |
[INFO] [stderr]  7 |     let escaped_edge = graph.scope_mut(|mut ctx| {
[INFO] [stderr]    |                                         -------- return type of closure is EdgeTag<'2, EdgeIx>
[INFO] [stderr]    |                                         |
[INFO] [stderr]    |                                         has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] ...
[INFO] [stderr] 11 |         edge // ERROR: edge tag 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] 
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]   --> tests/compile_fail/edge_tag_escape_scope.rs:11:9
[INFO] [stderr]    |
[INFO] [stderr]  7 |     let escaped_edge = graph.scope_mut(|mut ctx| {
[INFO] [stderr]    |                                         -------- return type of closure is `EdgeTag<'2, EdgeIx>`
[INFO] [stderr]    |                                         |
[INFO] [stderr]    |                                         has type `gotgraph::graph::Context<'1, &mut gotgraph::vec_graph::VecGraph<i32, &str>>`
[INFO] [stderr] ...
[INFO] [stderr] 11 |         edge // ERROR: edge tag 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] 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/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 ... mismatch
[INFO] [stderr] 
[INFO] [stderr] EXPECTED:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]  --> tests/compile_fail/node_tag_escape_scope.rs:9:9
[INFO] [stderr]   |
[INFO] [stderr] 7 |     let escaped_node = 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] 8 |         let n0 = ctx.add_node(42);
[INFO] [stderr] 9 |         n0 // ERROR: node tag 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] 
[INFO] [stderr] ACTUAL OUTPUT:
[INFO] [stderr] ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
[INFO] [stderr] error: lifetime may not live long enough
[INFO] [stderr]  --> tests/compile_fail/node_tag_escape_scope.rs:9:9
[INFO] [stderr]   |
[INFO] [stderr] 7 |     let escaped_node = 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] 8 |         let n0 = ctx.add_node(42);
[INFO] [stderr] 9 |         n0 // ERROR: node tag 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] 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/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] [stderr] error: test failed, to rerun pass `--test ui`
[INFO] [stdout] test test_compile_fail ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- test_compile_fail stdout ----
[INFO] [stdout] 
[INFO] [stdout] thread 'test_compile_fail' (878) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/trybuild-1.0.111/src/run.rs:102:13:
[INFO] [stdout] 8 of 9 tests failed
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x58a3e528f111 - <<std[218a0f7bb9a8af32]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[5c14b8d5a259cc4e]::fmt::Display>::fmt
[INFO] [stdout]    1:     0x58a3e52a588a - core[5c14b8d5a259cc4e]::fmt::write
[INFO] [stdout]    2:     0x58a3e5293b8c - <alloc[f65cf102c2e86268]::vec::Vec<u8> as core[5c14b8d5a259cc4e]::io::write::Write>::write_fmt
[INFO] [stdout]    3:     0x58a3e5268cf6 - std[218a0f7bb9a8af32]::panicking::default_hook::{closure#0}
[INFO] [stdout]    4:     0x58a3e5286579 - std[218a0f7bb9a8af32]::panicking::default_hook
[INFO] [stdout]    5:     0x58a3e5220610 - test[2df5162924bba3e2]::test_main_inner::{closure#0}
[INFO] [stdout]    6:     0x58a3e5286732 - std[218a0f7bb9a8af32]::panicking::panic_with_hook
[INFO] [stdout]    7:     0x58a3e5268da2 - std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0}
[INFO] [stdout]    8:     0x58a3e5260e89 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_end_short_backtrace::<std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]    9:     0x58a3e52699ad - __rustc[abc93889656912e2]::rust_begin_unwind
[INFO] [stdout]   10:     0x58a3e52a65fc - core[5c14b8d5a259cc4e]::panicking::panic_fmt
[INFO] [stdout]   11:     0x58a3e516fd85 - <trybuild[8cf41fad6cc0bc5e]::Runner>::run
[INFO] [stdout]   12:     0x58a3e5172ee0 - <trybuild[8cf41fad6cc0bc5e]::TestCases as core[5c14b8d5a259cc4e]::ops::drop::Drop>::drop
[INFO] [stdout]   13:     0x58a3e516a1a8 - ui[6cf941b6baabb8db]::test_compile_fail
[INFO] [stdout]   14:     0x58a3e516a3a9 - <ui[6cf941b6baabb8db]::test_compile_fail::{closure#0} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]   15:     0x58a3e521347b - test[2df5162924bba3e2]::__rust_begin_short_backtrace::<core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>, fn() -> core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>>
[INFO] [stdout]   16:     0x58a3e5220c35 - test[2df5162924bba3e2]::run_test::{closure#0}
[INFO] [stdout]   17:     0x58a3e521a084 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_begin_short_backtrace::<test[2df5162924bba3e2]::run_test::{closure#1}, ()>
[INFO] [stdout]   18:     0x58a3e5223bc2 - <std[218a0f7bb9a8af32]::thread::lifecycle::spawn_unchecked<test[2df5162924bba3e2]::run_test::{closure#1}, ()>::{closure#1} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]   19:     0x58a3e528e3af - <std[218a0f7bb9a8af32]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]   20:     0x78cc1c22fdfa - <unknown>
[INFO] [stdout]   21:     0x78cc1c2c33d4 - clone
[INFO] [stdout]   22:                0x0 - <unknown>
[INFO] [stdout] 
[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 1.05s
[INFO] [stdout] 
[INFO] running `"docker" "inspect" "1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509"`
[INFO] running `"docker" "rm" "-f" "1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509"`
[INFO] [stdout] 1851b1befd5c1bb97ecc656a5d0fb8a165a6a176042b9cdc313244898514e509
