From 0eb29d1a441a47ea45970c01332ebe157dba7039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Sun, 19 Jan 2020 19:22:15 -0800 Subject: [PATCH] fix test --- ...bject-unsafe-trait-in-return-position-dyn-trait.stderr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.stderr b/src/test/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.stderr index 0c8d267c134..ff4bfc30a4a 100644 --- a/src/test/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.stderr +++ b/src/test/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.stderr @@ -1,20 +1,20 @@ error[E0038]: the trait `NotObjectSafe` cannot be made into an object - --> $DIR/object-unsafe-trait-in-return-position-dyn-trait.rs:21:1 + --> $DIR/object-unsafe-trait-in-return-position-dyn-trait.rs:21:13 | LL | fn foo() -> Self; | --- associated function `foo` has no `self` parameter ... LL | fn car() -> dyn NotObjectSafe { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object + | ^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object error[E0038]: the trait `NotObjectSafe` cannot be made into an object - --> $DIR/object-unsafe-trait-in-return-position-dyn-trait.rs:28:1 + --> $DIR/object-unsafe-trait-in-return-position-dyn-trait.rs:28:13 | LL | fn foo() -> Self; | --- associated function `foo` has no `self` parameter ... LL | fn cat() -> Box { - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object + | ^^^^^^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object error: aborting due to 2 previous errors