Skip to content

Commit 0eb29d1

Browse files
committed
fix test
1 parent d72bcdb commit 0eb29d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/ui/impl-trait/object-unsafe-trait-in-return-position-dyn-trait.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
error[E0038]: the trait `NotObjectSafe` cannot be made into an object
2-
--> $DIR/object-unsafe-trait-in-return-position-dyn-trait.rs:21:1
2+
--> $DIR/object-unsafe-trait-in-return-position-dyn-trait.rs:21:13
33
|
44
LL | fn foo() -> Self;
55
| --- associated function `foo` has no `self` parameter
66
...
77
LL | fn car() -> dyn NotObjectSafe {
8-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object
8+
| ^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object
99

1010
error[E0038]: the trait `NotObjectSafe` cannot be made into an object
11-
--> $DIR/object-unsafe-trait-in-return-position-dyn-trait.rs:28:1
11+
--> $DIR/object-unsafe-trait-in-return-position-dyn-trait.rs:28:13
1212
|
1313
LL | fn foo() -> Self;
1414
| --- associated function `foo` has no `self` parameter
1515
...
1616
LL | fn cat() -> Box<dyn NotObjectSafe> {
17-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object
17+
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `NotObjectSafe` cannot be made into an object
1818

1919
error: aborting due to 2 previous errors
2020

0 commit comments

Comments
 (0)