You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `AsyncTrait` is not dyn compatible
14
+
| ^^^^^^^^^^^^^^^^^^^^^^^ `AsyncTrait` is not dyn compatible
15
15
|
16
16
note: for a trait to be dyn compatible it needs to allow building a vtable
17
17
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
= note: `#[warn(incomplete_features)]` on by default
9
9
10
10
error[E0038]: the trait `AsyncTrait` is not dyn compatible
11
-
--> $DIR/works.rs:27:16
11
+
--> $DIR/works.rs:27:21
12
12
|
13
13
LL | let x: &dyn AsyncTrait = &"hello, world!";
14
-
| ^^^^^^^^^^^^^^^ `AsyncTrait` is not dyn compatible
14
+
| ^^^^^^^^^^ `AsyncTrait` is not dyn compatible
15
15
|
16
16
note: for a trait to be dyn compatible it needs to allow building a vtable
17
17
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
= note: `#[warn(incomplete_features)]` on by default
9
9
10
10
error[E0038]: the trait `AsyncTrait` is not dyn compatible
11
-
--> $DIR/wrong-size.rs:21:12
11
+
--> $DIR/wrong-size.rs:21:17
12
12
|
13
13
LL | let x: &dyn AsyncTrait = &"hello, world!";
14
-
| ^^^^^^^^^^^^^^^ `AsyncTrait` is not dyn compatible
14
+
| ^^^^^^^^^^ `AsyncTrait` is not dyn compatible
15
15
|
16
16
note: for a trait to be dyn compatible it needs to allow building a vtable
17
17
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
Copy file name to clipboardExpand all lines: tests/ui/async-await/in-trait/dyn-compatibility.stderr
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
error[E0038]: the trait `Foo` is not dyn compatible
2
-
--> $DIR/dyn-compatibility.rs:9:12
2
+
--> $DIR/dyn-compatibility.rs:9:17
3
3
|
4
4
LL | let x: &dyn Foo = todo!();
5
-
| ^^^^^^^^ `Foo` is not dyn compatible
5
+
| ^^^ `Foo` is not dyn compatible
6
6
|
7
7
note: for a trait to be dyn compatible it needs to allow building a vtable
8
8
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
= note: the trait is not dyn compatible because it requires `Self: Sized`
30
+
= note: for a trait to be dyn compatible it needs to allow building a vtable
31
+
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
32
+
33
+
error[E0038]: the trait `Copy` is not dyn compatible
= note: the trait is not dyn compatible because it requires `Self: Sized`
30
40
= note: for a trait to be dyn compatible it needs to allow building a vtable
31
41
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
32
42
33
-
error: aborting due to 3 previous errors
43
+
error: aborting due to 4 previous errors
34
44
35
45
Some errors have detailed explanations: E0038, E0178.
36
46
For more information about an error, try `rustc --explain E0038`.
0 commit comments