From d8653d14a31031dc2cead9e42eee986aa0e52b97 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Fri, 17 Jun 2022 17:35:02 -0700 Subject: [PATCH] Update compiler output for auto_covariant test under rustc 1.61.0. --- examples/src/fail_tests/auto_covariant.stderr | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/examples/src/fail_tests/auto_covariant.stderr b/examples/src/fail_tests/auto_covariant.stderr index b94cd24..28c7b22 100644 --- a/examples/src/fail_tests/auto_covariant.stderr +++ b/examples/src/fail_tests/auto_covariant.stderr @@ -9,13 +9,7 @@ error: Ouroboros cannot automatically determine if this type is covariant. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0601]: `main` function not found in crate `$CRATE` - --> $DIR/auto_covariant.rs:1:1 + --> $DIR/auto_covariant.rs:12:2 | -1 | / use ouroboros::self_referencing; -2 | | -3 | | struct NotGuaranteedCovariant<'a> { -4 | | data: &'a (), -... | -11 | | field: NotGuaranteedCovariant<'this> -12 | | } - | |_^ consider adding a `main` function to `$DIR/src/fail_tests/auto_covariant.rs` +12 | } + | ^ consider adding a `main` function to `$DIR/src/fail_tests/auto_covariant.rs`