Skip to content

Commit 9ccc770

Browse files
committed
fix rebase
1 parent 20b1c2a commit 9ccc770

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

tests/ui/traits/method-on-unbounded-type-param.stderr

+4-13
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,11 @@ LL | fn h<T>(a: &T, b: T) -> std::cmp::Ordering where T: Iterator, T: Ord {
5353
error[E0599]: the method `cmp` exists for struct `Box<dyn T>`, but its trait bounds were not satisfied
5454
--> $DIR/method-on-unbounded-type-param.rs:14:7
5555
|
56-
LL | trait T {}
57-
| -------
58-
| |
59-
| doesn't satisfy `dyn T: Iterator`
60-
| doesn't satisfy `dyn T: Ord`
56+
LL | trait T {}
57+
| ------- doesn't satisfy `dyn T: Iterator` or `dyn T: Ord`
6158
...
62-
LL | x.cmp(&x);
63-
| ^^^ method cannot be called on `Box<dyn T>` due to unsatisfied trait bounds
64-
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
65-
::: $SRC_DIR/alloc/src/boxed.rs:LL:COL
66-
|
67-
= note: doesn't satisfy `Box<dyn T>: Iterator`
68-
|
69-
= note: doesn't satisfy `Box<dyn T>: Ord`
59+
LL | x.cmp(&x);
60+
| ^^^ method cannot be called on `Box<dyn T>` due to unsatisfied trait bounds
7061
|
7162
= note: the following trait bounds were not satisfied:
7263
`dyn T: Iterator`

0 commit comments

Comments
 (0)