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 1
1
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
3
3
|
4
4
LL | fn foo() -> Self;
5
5
| --- associated function `foo` has no `self` parameter
6
6
...
7
7
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
9
9
10
10
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
12
12
|
13
13
LL | fn foo() -> Self;
14
14
| --- associated function `foo` has no `self` parameter
15
15
...
16
16
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
18
18
19
19
error: aborting due to 2 previous errors
20
20
You can’t perform that action at this time.
0 commit comments