fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
615 B16 linesraw
1warning: Trait bound std::vec::Vec<str>: std::fmt::Debug does not depend on any type or lifetime parameters
2  --> $DIR/trivial-bounds-inconsistent-well-formed.rs:7:30
3   |
4LL | pub fn foo() where Vec<str>: Debug, str: Copy {
5   |                              ^^^^^
6   |
7   = note: `#[warn(trivial_bounds)]` on by default
8
9warning: Trait bound str: std::marker::Copy does not depend on any type or lifetime parameters
10  --> $DIR/trivial-bounds-inconsistent-well-formed.rs:7:42
11   |
12LL | pub fn foo() where Vec<str>: Debug, str: Copy {
13   |                                          ^^^^
14
15warning: 2 warnings emitted
16