1 error: `?Trait` bounds are only permitted at the point where a type parameter is declared
2 --> $DIR/maybe-bounds-where.rs:1:28
4 LL | struct S1<T>(T) where (T): ?Sized;
7 error: `?Trait` bounds are only permitted at the point where a type parameter is declared
8 --> $DIR/maybe-bounds-where.rs:4:27
10 LL | struct S2<T>(T) where u8: ?Sized;
13 error: `?Trait` bounds are only permitted at the point where a type parameter is declared
14 --> $DIR/maybe-bounds-where.rs:7:35
16 LL | struct S3<T>(T) where &'static T: ?Sized;
19 error: `?Trait` bounds are only permitted at the point where a type parameter is declared
20 --> $DIR/maybe-bounds-where.rs:12:34
22 LL | struct S4<T>(T) where for<'a> T: ?Trait<'a>;
25 error: `?Trait` bounds are only permitted at the point where a type parameter is declared
26 --> $DIR/maybe-bounds-where.rs:21:21
28 LL | fn f() where T: ?Sized {}
31 warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
32 --> $DIR/maybe-bounds-where.rs:12:11
34 LL | struct S4<T>(T) where for<'a> T: ?Trait<'a>;
37 error[E0203]: type parameter has more than one relaxed default bound, only one is supported
38 --> $DIR/maybe-bounds-where.rs:16:11
40 LL | struct S5<T>(*const T) where T: ?Trait<'static> + ?Sized;
43 warning: default bound relaxed for a type parameter, but this does nothing because the given bound is not a default; only `?Sized` is supported
44 --> $DIR/maybe-bounds-where.rs:16:11
46 LL | struct S5<T>(*const T) where T: ?Trait<'static> + ?Sized;
49 error: aborting due to 6 previous errors; 2 warnings emitted
51 For more information about this error, try `rustc --explain E0203`.