• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: Trait bound Inner: Unpin does not depend on any type or lifetime parameters
2  --> $DIR/trivial_bounds.rs:15:35
3   |
415 |     impl Unpin for A where Inner: Unpin {} //~ ERROR std::marker::Unpin does not depend on any type or lifetime parameters
5   |                                   ^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/trivial_bounds.rs:6:9
9   |
106  | #![deny(trivial_bounds)]
11   |         ^^^^^^^^^^^^^^
12
13error: Trait bound Wrapper<Inner>: Unpin does not depend on any type or lifetime parameters
14  --> $DIR/trivial_bounds.rs:23:44
15   |
1623 |     impl Unpin for B where Wrapper<Inner>: Unpin {} //~ ERROR std::marker::Unpin does not depend on any type or lifetime parameters
17   |                                            ^^^^^
18