]> git.lizzy.rs Git - rust.git/blob - tests/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / ui / trivial-bounds / trivial-bounds-inconsistent-sized.stderr
1 warning: trait bound str: Sized does not depend on any type or lifetime parameters
2   --> $DIR/trivial-bounds-inconsistent-sized.rs:14:31
3    |
4 LL | struct S(str, str) where str: Sized;
5    |                               ^^^^^
6    |
7    = note: `#[warn(trivial_bounds)]` on by default
8
9 warning: trait bound for<'a> T<(dyn A + 'a)>: Sized does not depend on any type or lifetime parameters
10   --> $DIR/trivial-bounds-inconsistent-sized.rs:17:49
11    |
12 LL | fn unsized_local() where for<'a> T<dyn A + 'a>: Sized {
13    |                                                 ^^^^^
14
15 warning: trait bound str: Sized does not depend on any type or lifetime parameters
16   --> $DIR/trivial-bounds-inconsistent-sized.rs:22:35
17    |
18 LL | fn return_str() -> str where str: Sized {
19    |                                   ^^^^^
20
21 warning: 3 warnings emitted
22