error: Trait bound Inner: Unpin does not depend on any type or lifetime parameters --> $DIR/trivial_bounds.rs:15:35 | 15 | impl Unpin for A where Inner: Unpin {} //~ ERROR std::marker::Unpin does not depend on any type or lifetime parameters | ^^^^^ | note: the lint level is defined here --> $DIR/trivial_bounds.rs:6:9 | 6 | #![deny(trivial_bounds)] | ^^^^^^^^^^^^^^ error: Trait bound Wrapper: Unpin does not depend on any type or lifetime parameters --> $DIR/trivial_bounds.rs:23:44 | 23 | impl Unpin for B where Wrapper: Unpin {} //~ ERROR std::marker::Unpin does not depend on any type or lifetime parameters | ^^^^^