fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
839 B20 linesraw
1warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
2  --> $DIR/trivial-bounds-inconsistent-sized.rs:14:31
3   |
4LL | struct S(str, str) where str: Sized;
5   |                               ^^^^^
6   |
7   = note: `#[warn(trivial_bounds)]` on by default
8
9warning: Trait bound for<'a> T<(dyn A + 'a)>: std::marker::Sized does not depend on any type or lifetime parameters
10  --> $DIR/trivial-bounds-inconsistent-sized.rs:17:49
11   |
12LL | fn unsized_local() where for<'a> T<dyn A + 'a>: Sized {
13   |                                                 ^^^^^
14
15warning: Trait bound str: std::marker::Sized does not depend on any type or lifetime parameters
16  --> $DIR/trivial-bounds-inconsistent-sized.rs:22:35
17   |
18LL | fn return_str() -> str where str: Sized {
19   |                                   ^^^^^
20