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
Copy file name to clipboardexpand all lines: tests/ui/invalid_dispatch_from_dyn_impls.stderr
+16-8
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,20 @@
1
1
error[E0378]: the trait `DispatchFromDyn` may only be implemented for structs containing the field being coerced, ZST fields with 1 byte alignment, and nothing else
2
2
--> $DIR/invalid_dispatch_from_dyn_impls.rs:10:1
3
3
|
4
-
LL | impl<T, U> DispatchFromDyn<WrapperWithExtraField<U>> for WrapperWithExtraField<T>
LL | / impl<T: ?Sized, U: ?Sized> DispatchFromDyn<HasReprC<U>> for HasReprC<T>
34
+
LL | | where
35
+
LL | | T: Unsize<U>,
36
+
| |_________________^
31
37
32
38
error[E0378]: the trait `DispatchFromDyn` may only be implemented for structs containing the field being coerced, ZST fields with 1 byte alignment, and nothing else
33
39
--> $DIR/invalid_dispatch_from_dyn_impls.rs:46:1
34
40
|
35
-
LL | impl<T: ?Sized, U: ?Sized> DispatchFromDyn<OverAligned<U>> for OverAligned<T>
0 commit comments