diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-01-30 19:13:11 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-01-30 19:13:11 +0000 |
| commit | 9ccc77036a144cc0d172c28e48c330d544ae5471 (patch) | |
| tree | d9907b9fa1953d372ac68c11313d2e7771785193 | |
| parent | 20b1c2aafca8d8861d193d3476ffc8d09c0479e2 (diff) | |
| download | rust-9ccc77036a144cc0d172c28e48c330d544ae5471.tar.gz rust-9ccc77036a144cc0d172c28e48c330d544ae5471.zip | |
fix rebase
| -rw-r--r-- | tests/ui/traits/method-on-unbounded-type-param.stderr | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/tests/ui/traits/method-on-unbounded-type-param.stderr b/tests/ui/traits/method-on-unbounded-type-param.stderr index f12b4d6cabd..245c25bbc6f 100644 --- a/tests/ui/traits/method-on-unbounded-type-param.stderr +++ b/tests/ui/traits/method-on-unbounded-type-param.stderr @@ -53,20 +53,11 @@ LL | fn h<T>(a: &T, b: T) -> std::cmp::Ordering where T: Iterator, T: Ord { error[E0599]: the method `cmp` exists for struct `Box<dyn T>`, but its trait bounds were not satisfied --> $DIR/method-on-unbounded-type-param.rs:14:7 | -LL | trait T {} - | ------- - | | - | doesn't satisfy `dyn T: Iterator` - | doesn't satisfy `dyn T: Ord` +LL | trait T {} + | ------- doesn't satisfy `dyn T: Iterator` or `dyn T: Ord` ... -LL | x.cmp(&x); - | ^^^ method cannot be called on `Box<dyn T>` due to unsatisfied trait bounds - --> $SRC_DIR/alloc/src/boxed.rs:LL:COL - ::: $SRC_DIR/alloc/src/boxed.rs:LL:COL - | - = note: doesn't satisfy `Box<dyn T>: Iterator` - | - = note: doesn't satisfy `Box<dyn T>: Ord` +LL | x.cmp(&x); + | ^^^ method cannot be called on `Box<dyn T>` due to unsatisfied trait bounds | = note: the following trait bounds were not satisfied: `dyn T: Iterator` |
