File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11error[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 |
44LL | fn foo() -> Self;
55 | --- associated function `foo` has no `self` parameter
66...
77LL | 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
1010error[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 |
1313LL | fn foo() -> Self;
1414 | --- associated function `foo` has no `self` parameter
1515...
1616LL | 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
1919error: aborting due to 2 previous errors
2020
You can’t perform that action at this time.
0 commit comments