summaryrefslogtreecommitdiffstats
path: root/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr
blob: cf24d811c04e3dbb5d63de768d23e013910c48cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
warning: trait bound str: Sized does not depend on any type or lifetime parameters
  --> $DIR/trivial-bounds-inconsistent-sized.rs:14:31
   |
LL | struct S(str, str) where str: Sized;
   |                               ^^^^^
   |
   = note: `#[warn(trivial_bounds)]` on by default

warning: trait bound for<'a> T<(dyn A + 'a)>: Sized does not depend on any type or lifetime parameters
  --> $DIR/trivial-bounds-inconsistent-sized.rs:17:49
   |
LL | fn unsized_local() where for<'a> T<dyn A + 'a>: Sized {
   |                                                 ^^^^^

warning: trait bound str: Sized does not depend on any type or lifetime parameters
  --> $DIR/trivial-bounds-inconsistent-sized.rs:22:35
   |
LL | fn return_str() -> str where str: Sized {
   |                                   ^^^^^

warning: 3 warnings emitted