fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.3 KiB26 linesraw
1warning: Trait bound std::string::String: std::marker::Copy does not depend on any type or lifetime parameters
2  --> $DIR/trivial-bounds-inconsistent-copy.rs:5:51
3   |
4LL | fn copy_string(t: String) -> String where String: Copy {
5   |                                                   ^^^^
6   |
7   = note: `#[warn(trivial_bounds)]` on by default
8
9warning: Trait bound std::string::String: std::marker::Copy does not depend on any type or lifetime parameters
10  --> $DIR/trivial-bounds-inconsistent-copy.rs:12:56
11   |
12LL | fn copy_out_string(t: &String) -> String where String: Copy {
13   |                                                        ^^^^
14
15warning: Trait bound std::string::String: std::marker::Copy does not depend on any type or lifetime parameters
16  --> $DIR/trivial-bounds-inconsistent-copy.rs:16:55
17   |
18LL | fn copy_string_with_param<T>(x: String) where String: Copy {
19   |                                                       ^^^^
20
21warning: Trait bound for<'b> &'b mut i32: std::marker::Copy does not depend on any type or lifetime parameters
22  --> $DIR/trivial-bounds-inconsistent-copy.rs:22:76
23   |
24LL | fn copy_mut<'a>(t: &&'a mut i32) -> &'a mut i32 where for<'b> &'b mut i32: Copy {
25   |                                                                            ^^^^
26