| 
 | 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  | 
 | 3 | +   |  | 
 | 4 | +LL | fn foo<T>(foo: Wrapper<T>)  | 
 | 5 | +   |        -       ^^^^^^^^^^ doesn't have a size known at compile-time  | 
 | 6 | +   |        |  | 
 | 7 | +   |        this type parameter needs to be `std::marker::Sized`  | 
 | 8 | +   |  | 
 | 9 | +note: required by a bound in `Wrapper`  | 
 | 10 | +  --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16  | 
 | 11 | +   |  | 
 | 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  | 
 | 16 | +   |  | 
 | 17 | +LL | struct Wrapper<T>(T);  | 
 | 18 | +   |                ^  - ...if indirection were used here: `Box<T>`  | 
 | 19 | +   |                |  | 
 | 20 | +   |                this could be changed to `T: ?Sized`...  | 
 | 21 | +help: consider removing the `?Sized` bound to make the type parameter `Sized`  | 
 | 22 | +   |  | 
 | 23 | +LL - where  | 
 | 24 | +LL -     T  | 
 | 25 | +LL -     :  | 
 | 26 | +LL -     ?  | 
 | 27 | +LL -     Sized  | 
 | 28 | +   |   | 
 | 29 | + | 
 | 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  | 
 | 32 | +   |  | 
 | 33 | +LL | fn bar<T>(foo: Wrapper<T>)  | 
 | 34 | +   |        -       ^^^^^^^^^^ doesn't have a size known at compile-time  | 
 | 35 | +   |        |  | 
 | 36 | +   |        this type parameter needs to be `std::marker::Sized`  | 
 | 37 | +   |  | 
 | 38 | +note: required by a bound in `Wrapper`  | 
 | 39 | +  --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16  | 
 | 40 | +   |  | 
 | 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  | 
 | 45 | +   |  | 
 | 46 | +LL | struct Wrapper<T>(T);  | 
 | 47 | +   |                ^  - ...if indirection were used here: `Box<T>`  | 
 | 48 | +   |                |  | 
 | 49 | +   |                this could be changed to `T: ?Sized`...  | 
 | 50 | +help: consider removing the `?Sized` bound to make the type parameter `Sized`  | 
 | 51 | +   |  | 
 | 52 | +LL - where T: ?Sized  | 
 | 53 | +   |   | 
 | 54 | + | 
 | 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  | 
 | 57 | +   |  | 
 | 58 | +LL | fn qux<T>(foo: Wrapper<T>)  | 
 | 59 | +   |        -       ^^^^^^^^^^ doesn't have a size known at compile-time  | 
 | 60 | +   |        |  | 
 | 61 | +   |        this type parameter needs to be `std::marker::Sized`  | 
 | 62 | +   |  | 
 | 63 | +note: required by a bound in `Wrapper`  | 
 | 64 | +  --> $DIR/removal-of-multiline-trait-bound-in-where-clause.rs:1:16  | 
 | 65 | +   |  | 
 | 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  | 
 | 70 | +   |  | 
 | 71 | +LL | struct Wrapper<T>(T);  | 
 | 72 | +   |                ^  - ...if indirection were used here: `Box<T>`  | 
 | 73 | +   |                |  | 
 | 74 | +   |                this could be changed to `T: ?Sized`...  | 
 | 75 | +help: consider removing the `?Sized` bound to make the type parameter `Sized`  | 
 | 76 | +   |  | 
 | 77 | +LL - where  | 
 | 78 | +LL -     T: ?Sized  | 
 | 79 | +   |   | 
 | 80 | + | 
 | 81 | +error: aborting due to 3 previous errors  | 
 | 82 | + | 
 | 83 | +For more information about this error, try `rustc --explain E0277`.  | 
0 commit comments