]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-20005.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-20005.stderr
CommitLineData
8faf50e0 1error[E0277]: the size for values of type `Self` cannot be known at compilation time
74b04a01 2 --> $DIR/issue-20005.rs:10:49
8faf50e0 3 |
74b04a01 4LL | trait From<Src> {
ba9703b0 5 | --- required by this bound in `From`
e1599b0c 6...
74b04a01 7LL | ) -> <Dst as From<Self>>::Result where Dst: From<Self> {
f9f354fc 8 | ^^^^^^^^^^ doesn't have a size known at compile-time
8faf50e0 9 |
f9f354fc
XL
10help: consider further restricting `Self`
11 |
1b1a35ee
XL
12LL | ) -> <Dst as From<Self>>::Result where Dst: From<Self>, Self: Sized {
13 | ^^^^^^^^^^^^^
f9f354fc
XL
14help: consider relaxing the implicit `Sized` restriction
15 |
16LL | trait From<Src: ?Sized> {
17 | ^^^^^^^^
8faf50e0
XL
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0277`.