]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/type_repetition_in_bounds.stderr
Auto merge of #99422 - Dylan-DPC:rollup-htjofm6, r=Dylan-DPC
[rust.git] / src / tools / clippy / tests / ui / type_repetition_in_bounds.stderr
index abc25e59496bfa13262c3a5b938ce282a7b25edb..1d88714814d477007bc0dc6afc60f0fee9bb95a4 100644 (file)
@@ -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<str>, _: impl AsRef<str>) {}
-   |                                           ^^^^^^^^^^
+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<str>: AsRef<str> + AsRef<str>`
+   = help: consider combining the bounds: `T: Clone + ?Sized`
 
-error: aborting due to 3 previous errors
+error: aborting due to 4 previous errors