]> git.lizzy.rs Git - rust.git/commitdiff
fix test
authorEsteban Küber <esteban@kuber.com.ar>
Mon, 20 Jan 2020 03:22:15 +0000 (19:22 -0800)
committerEsteban Küber <esteban@kuber.com.ar>
Sun, 2 Feb 2020 19:52:34 +0000 (11:52 -0800)
src/test/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.stderr

index 0c8d267c13434b0628fd29c7e114b0bdfbc36849..ff4bfc30a4a62f3937665fb8ff8c92572813ccb3 100644 (file)
@@ -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<dyn NotObjectSafe> {
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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