X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftools%2Fclippy%2Ftests%2Fui%2Ftype_repetition_in_bounds.stderr;h=1d88714814d477007bc0dc6afc60f0fee9bb95a4;hb=f8588549c3c3d45c32b404210cada01e2a45def3;hp=abc25e59496bfa13262c3a5b938ce282a7b25edb;hpb=c3ddd59f5b0ed31c83a4421fdbdfb73db8ba378f;p=rust.git diff --git a/src/tools/clippy/tests/ui/type_repetition_in_bounds.stderr b/src/tools/clippy/tests/ui/type_repetition_in_bounds.stderr index abc25e59496..1d88714814d 100644 --- a/src/tools/clippy/tests/ui/type_repetition_in_bounds.stderr +++ b/src/tools/clippy/tests/ui/type_repetition_in_bounds.stderr @@ -20,12 +20,20 @@ LL | Self: Copy + Default + Ord, = help: consider combining the bounds: `Self: Clone + Copy + Default + Ord` error: this type has already been used as a bound predicate - --> $DIR/type_repetition_in_bounds.rs:83:43 + --> $DIR/type_repetition_in_bounds.rs:85:5 | -LL | fn impl_trait(_: impl AsRef, _: impl AsRef) {} - | ^^^^^^^^^^ +LL | T: Clone, + | ^^^^^^^^ + | + = help: consider combining the bounds: `T: ?Sized + Clone` + +error: this type has already been used as a bound predicate + --> $DIR/type_repetition_in_bounds.rs:90:5 + | +LL | T: ?Sized, + | ^^^^^^^^^ | - = help: consider combining the bounds: `impl AsRef: AsRef + AsRef` + = help: consider combining the bounds: `T: Clone + ?Sized` -error: aborting due to 3 previous errors +error: aborting due to 4 previous errors