1 error[E0277]: the size for values of type `T` cannot be known at compilation time
2 --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:3:16
4 LL | fn foo<T>(foo: Wrapper<T>)
5 | - ^^^^^^^^^^ doesn't have a size known at compile-time
7 | this type parameter needs to be `std::marker::Sized`
9 note: required by a bound in `Wrapper`
10 --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
12 LL | struct Wrapper<T>(T);
13 | ^ required by this bound in `Wrapper`
14 help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
15 --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
17 LL | struct Wrapper<T>(T);
18 | ^ - ...if indirection were used here: `Box<T>`
20 | this could be changed to `T: ?Sized`...
21 help: consider removing the `?Sized` bound to make the type parameter `Sized`
30 error[E0277]: the size for values of type `T` cannot be known at compilation time
31 --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:14:16
33 LL | fn bar<T>(foo: Wrapper<T>)
34 | - ^^^^^^^^^^ doesn't have a size known at compile-time
36 | this type parameter needs to be `std::marker::Sized`
38 note: required by a bound in `Wrapper`
39 --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
41 LL | struct Wrapper<T>(T);
42 | ^ required by this bound in `Wrapper`
43 help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
44 --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
46 LL | struct Wrapper<T>(T);
47 | ^ - ...if indirection were used here: `Box<T>`
49 | this could be changed to `T: ?Sized`...
50 help: consider removing the `?Sized` bound to make the type parameter `Sized`
55 error[E0277]: the size for values of type `T` cannot be known at compilation time
56 --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:21:16
58 LL | fn qux<T>(foo: Wrapper<T>)
59 | - ^^^^^^^^^^ doesn't have a size known at compile-time
61 | this type parameter needs to be `std::marker::Sized`
63 note: required by a bound in `Wrapper`
64 --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
66 LL | struct Wrapper<T>(T);
67 | ^ required by this bound in `Wrapper`
68 help: you could relax the implicit `Sized` bound on `T` if it were used through indirection like `&T` or `Box<T>`
69 --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16
71 LL | struct Wrapper<T>(T);
72 | ^ - ...if indirection were used here: `Box<T>`
74 | this could be changed to `T: ?Sized`...
75 help: consider removing the `?Sized` bound to make the type parameter `Sized`
81 error: aborting due to 3 previous errors
83 For more information about this error, try `rustc --explain E0277`.