fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0277]: the size for values of type `X` cannot be known at compilation time 2 --> $DIR/unsized3.rs:7:13 3 | 4LL | f2::<X>(x); 5 | ^ doesn't have a size known at compile-time 6... 7LL | fn f2<X>(x: &X) { 8 | -- - required by this bound in `f2` 9 | 10 = help: the trait `std::marker::Sized` is not implemented for `X` 11 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 12 = help: consider adding a `where X: std::marker::Sized` bound 13 14error[E0277]: the size for values of type `X` cannot be known at compilation time 15 --> $DIR/unsized3.rs:18:13 16 | 17LL | f4::<X>(x); 18 | ^ doesn't have a size known at compile-time 19... 20LL | fn f4<X: T>(x: &X) { 21 | -- - required by this bound in `f4` 22 | 23 = help: the trait `std::marker::Sized` is not implemented for `X` 24 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 25 = help: consider adding a `where X: std::marker::Sized` bound 26 27error[E0277]: the size for values of type `X` cannot be known at compilation time 28 --> $DIR/unsized3.rs:33:8 29 | 30LL | fn f5<Y>(x: &Y) {} 31 | -- - required by this bound in `f5` 32... 33LL | f5(x1); 34 | ^^ doesn't have a size known at compile-time 35 | 36 = help: within `S<X>`, the trait `std::marker::Sized` is not implemented for `X` 37 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 38 = help: consider adding a `where X: std::marker::Sized` bound 39 = note: required because it appears within the type `S<X>` 40 41error[E0277]: the size for values of type `X` cannot be known at compilation time 42 --> $DIR/unsized3.rs:40:8 43 | 44LL | f5(&(*x1, 34)); 45 | ^^^^^^^^^^ doesn't have a size known at compile-time 46 | 47 = help: within `S<X>`, the trait `std::marker::Sized` is not implemented for `X` 48 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 49 = help: consider adding a `where X: std::marker::Sized` bound 50 = note: required because it appears within the type `S<X>` 51 = note: only the last element of a tuple may have a dynamically sized type 52 53error[E0277]: the size for values of type `X` cannot be known at compilation time 54 --> $DIR/unsized3.rs:45:9 55 | 56LL | f5(&(32, *x1)); 57 | ^^^^^^^^^ doesn't have a size known at compile-time 58 | 59 = help: within `({integer}, S<X>)`, the trait `std::marker::Sized` is not implemented for `X` 60 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 61 = help: consider adding a `where X: std::marker::Sized` bound 62 = note: required because it appears within the type `S<X>` 63 = note: required because it appears within the type `({integer}, S<X>)` 64 = note: tuples must have a statically known size to be initialized 65 66error[E0277]: the size for values of type `X` cannot be known at compilation time 67 --> $DIR/unsized3.rs:45:8 68 | 69LL | fn f5<Y>(x: &Y) {} 70 | -- - required by this bound in `f5` 71... 72LL | f5(&(32, *x1)); 73 | ^^^^^^^^^^ doesn't have a size known at compile-time 74 | 75 = help: within `({integer}, S<X>)`, the trait `std::marker::Sized` is not implemented for `X` 76 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> 77 = help: consider adding a `where X: std::marker::Sized` bound 78 = note: required because it appears within the type `S<X>` 79 = note: required because it appears within the type `({integer}, S<X>)` 80 81error: aborting due to 6 previous errors 82 83For more information about this error, try `rustc --explain E0277`.