Check explicitly that tuple initializer is Sized.

This commit is contained in:
Masaki Hara 2017-06-08 14:46:46 +09:00
parent 7acce3724d
commit 17fca8b460
No known key found for this signature in database
GPG key ID: 7CA7A85E049A82E8
5 changed files with 10 additions and 0 deletions

View file

@ -54,6 +54,7 @@ fn f9<X: ?Sized>(x1: Box<S<X>>) {
fn f10<X: ?Sized>(x1: Box<S<X>>) {
f5(&(32, *x1));
//~^ ERROR `X: std::marker::Sized` is not satisfied
//~| ERROR `X: std::marker::Sized` is not satisfied
}
pub fn main() {