Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upThe trait object Foo+Copy implements the trait Copy #32963
Comments
arielb1
added
the
I-ICE
label
Apr 14, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@arielb1 indeed. |
nikomatsakis
added
the
T-compiler
label
Apr 15, 2016
This comment has been minimized.
This comment has been minimized.
|
triage: P-high |
rust-highfive
added
the
P-high
label
Apr 15, 2016
This comment has been minimized.
This comment has been minimized.
|
I am working on a fix. |
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Apr 17, 2016
This comment has been minimized.
This comment has been minimized.
|
@arielb1 saw your ping on IRC; it seems like we simply should consider |
This comment has been minimized.
This comment has been minimized.
|
(I've always thought that unsized types would be move-only.) |
arielb1
referenced this issue
Apr 21, 2016
Merged
Short-cut `T: Sized` trait selection for ADTs #33138
nrc
assigned
arielb1
Apr 21, 2016
arielb1
added a commit
to arielb1/rust
that referenced
this issue
Apr 21, 2016
arielb1
added a commit
to arielb1/rust
that referenced
this issue
Apr 21, 2016
arielb1
added a commit
to arielb1/rust
that referenced
this issue
Apr 21, 2016
arielb1
added a commit
to arielb1/rust
that referenced
this issue
Apr 27, 2016
arielb1
added a commit
to arielb1/rust
that referenced
this issue
May 1, 2016
arielb1
added a commit
to arielb1/rust
that referenced
this issue
May 3, 2016
bors
added a commit
that referenced
this issue
May 6, 2016
bors
closed this
in
#33138
May 6, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
arielb1 commentedApr 14, 2016
•
edited
selectconsiders the trait object typeFoo+Copyto implement the traitCopy, and therefore its supertraitsCloneandSized. This is totally bogus, as the trait object type is not Sized.For example:
This obviously should not compile, but it does (and prints 16, because of the
size_ofunsized hack).