2021-10-03 06:53:02 +00:00
|
|
|
warning: trait bound str: Sized does not depend on any type or lifetime parameters
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/trivial-bounds-inconsistent-sized.rs:14:31
|
2018-05-06 21:54:00 +00:00
|
|
|
|
|
|
|
|
LL | struct S(str, str) where str: Sized;
|
2018-09-16 17:15:49 +00:00
|
|
|
| ^^^^^
|
2018-05-06 21:54:00 +00:00
|
|
|
|
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[warn(trivial_bounds)]` on by default
|
2018-05-06 21:54:00 +00:00
|
|
|
|
2021-10-03 06:53:02 +00:00
|
|
|
warning: trait bound for<'a> T<(dyn A + 'a)>: Sized does not depend on any type or lifetime parameters
|
2019-11-06 00:00:00 +00:00
|
|
|
--> $DIR/trivial-bounds-inconsistent-sized.rs:17:49
|
2018-05-06 21:54:00 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | fn unsized_local() where for<'a> T<dyn A + 'a>: Sized {
|
|
|
|
| ^^^^^
|
2018-05-06 21:54:00 +00:00
|
|
|
|
2021-10-03 06:53:02 +00:00
|
|
|
warning: trait bound str: Sized does not depend on any type or lifetime parameters
|
2019-11-06 00:00:00 +00:00
|
|
|
--> $DIR/trivial-bounds-inconsistent-sized.rs:22:35
|
2018-05-06 21:54:00 +00:00
|
|
|
|
|
2018-09-16 17:15:49 +00:00
|
|
|
LL | fn return_str() -> str where str: Sized {
|
|
|
|
| ^^^^^
|
2018-05-06 21:54:00 +00:00
|
|
|
|
2020-03-11 15:30:09 +00:00
|
|
|
warning: 3 warnings emitted
|
|
|
|
|