1 warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
2 --> $DIR/trivial-bounds-inconsistent-sized.rs:24:1
4 LL | struct S(str, str) where str: Sized;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: #[warn(trivial_bounds)] on by default
9 warning: Trait bound for<'a> T<A + 'a>: std::marker::Sized does not depend on any type or lifetime parameters
10 --> $DIR/trivial-bounds-inconsistent-sized.rs:26:1
12 LL | / fn unsized_local() where for<'a> T<A + 'a>: Sized {
13 LL | | let x: T<A> = *(Box::new(T { x: 1 }) as Box<T<A>>);
17 warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
18 --> $DIR/trivial-bounds-inconsistent-sized.rs:30:1
20 LL | / fn return_str() -> str where str: Sized {
21 LL | | *"Sized".to_string().into_boxed_str()