2018-05-06 22:54:00 +01:00
|
|
|
warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/trivial-bounds-inconsistent-sized.rs:14:31
|
2018-05-06 22:54:00 +01:00
|
|
|
|
|
|
|
|
LL | struct S(str, str) where str: Sized;
|
2018-09-16 20:15:49 +03:00
|
|
|
| ^^^^^
|
2018-05-06 22:54:00 +01:00
|
|
|
|
|
|
|
|
= note: #[warn(trivial_bounds)] on by default
|
|
|
|
|
2018-05-26 20:51:50 -07:00
|
|
|
warning: Trait bound for<'a> T<(dyn A + 'a)>: std::marker::Sized does not depend on any type or lifetime parameters
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/trivial-bounds-inconsistent-sized.rs:16:45
|
2018-05-06 22:54:00 +01:00
|
|
|
|
|
2018-09-16 20:15:49 +03:00
|
|
|
LL | fn unsized_local() where for<'a> T<A + 'a>: Sized {
|
|
|
|
| ^^^^^
|
2018-05-06 22:54:00 +01:00
|
|
|
|
|
|
|
warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/trivial-bounds-inconsistent-sized.rs:20:35
|
2018-05-06 22:54:00 +01:00
|
|
|
|
|
2018-09-16 20:15:49 +03:00
|
|
|
LL | fn return_str() -> str where str: Sized {
|
|
|
|
| ^^^^^
|
2018-05-06 22:54:00 +01:00
|
|
|
|