Debian Codegraph @

third_party/rust/pin-project/tests/ui/unstable-features/trivial_bounds.stderr

raw
1 error: trait bound PhantomPinned: Unpin does not depend on any type or lifetime parameters
2 --> tests/ui/unstable-features/trivial_bounds.rs:16:43
3 |
4 16 | impl Unpin for A where PhantomPinned: Unpin {} //~ ERROR Unpin does not depend on any type or lifetime parameters
5 | ^^^^^
6 |
7 note: the lint level is defined here
8 --> tests/ui/unstable-features/trivial_bounds.rs:6:9
9 |
10 6 | #![deny(trivial_bounds)]
11 | ^^^^^^^^^^^^^^
12
13 error: trait bound Inner: Unpin does not depend on any type or lifetime parameters
14 --> tests/ui/unstable-features/trivial_bounds.rs:20:35
15 |
16 20 | impl Unpin for B where Inner: Unpin {} //~ ERROR Unpin does not depend on any type or lifetime parameters
17 | ^^^^^
18
19 error: trait bound Wrapper<Inner>: Unpin does not depend on any type or lifetime parameters
20 --> tests/ui/unstable-features/trivial_bounds.rs:28:44
21 |
22 28 | impl Unpin for C where Wrapper<Inner>: Unpin {} //~ ERROR Unpin does not depend on any type or lifetime parameters
23 | ^^^^^