rust/tests/ui/iterators
Esteban Küber 6efddac288 Provide more context on derived obligation error primary label
Expand the primary span of E0277 when the immediate unmet bound is not what the user wrote:

```
error[E0277]: the trait bound `i32: Bar` is not satisfied
 --> f100.rs:6:6
  |
6 |     <i32 as Foo>::foo();
  |      ^^^ the trait `Bar` is not implemented for `i32`, which is required by `i32: Foo`
  |
help: this trait has no implementations, consider adding one
 --> f100.rs:2:1
  |
2 | trait Bar {}
  | ^^^^^^^^^
note: required for `i32` to implement `Foo`
 --> f100.rs:3:14
  |
3 | impl<T: Bar> Foo for T {}
  |         ---  ^^^     ^
  |         |
  |         unsatisfied trait bound introduced here
```

Fix #40120.
2024-01-30 21:28:18 +00:00
..
array-of-ranges.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
array.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bound.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bound.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
collect-into-array.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
collect-into-array.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
collect-into-slice.rs Give better error when collecting into &[T] 2023-05-15 21:16:35 +03:00
collect-into-slice.stderr Reorder fullfillment errors to keep more interesting ones first 2023-10-04 02:04:14 +00:00
float_iterator_hint.rs add note for float iterator 2023-01-12 15:29:53 +01:00
float_iterator_hint.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
integral.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
integral.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
into-iter-on-arrays-2018.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
into-iter-on-arrays-2018.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
into-iter-on-arrays-2021.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
into-iter-on-arrays-lint.fixed Add unuseless #[allow(unused_allocation)] 2023-03-03 17:47:48 +00:00
into-iter-on-arrays-lint.rs Add unuseless #[allow(unused_allocation)] 2023-03-03 17:47:48 +00:00
into-iter-on-arrays-lint.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
into-iterator-type-inference-shift.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
invalid-iterator-chain-fixable.fixed Special case iterator chain checks for suggestion 2023-10-14 04:11:54 +00:00
invalid-iterator-chain-fixable.rs Special case iterator chain checks for suggestion 2023-10-14 04:11:54 +00:00
invalid-iterator-chain-fixable.stderr Special case iterator chain checks for suggestion 2023-10-14 04:11:54 +00:00
invalid-iterator-chain-with-int-infer.rs Handle inference variables in CollectAllMismatches correctly 2023-01-11 20:01:24 +00:00
invalid-iterator-chain-with-int-infer.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
invalid-iterator-chain.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
invalid-iterator-chain.stderr Special case iterator chain checks for suggestion 2023-10-14 04:11:54 +00:00
issue-28098.rs Deduplicate more sized errors on call exprs 2024-01-24 02:53:15 +00:00
issue-28098.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
issue-58952-filter-type-length.rs Ignore tests that hang in new solver 2023-06-09 21:57:37 +00:00
iter-cloned-type-inference.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
iter-count-overflow-debug.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
iter-count-overflow-ndebug.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
iter-map-fold-type-length.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
iter-position-overflow-debug.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
iter-position-overflow-ndebug.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
iter-range.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
iter-step-overflow-debug.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
iter-step-overflow-ndebug.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
iter-sum-overflow-debug.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
iter-sum-overflow-ndebug.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
iter-sum-overflow-overflow-checks.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranges.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ranges.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
rsplit-clone.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
skip-count-overflow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
string.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
string.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
vec-on-unimplemented.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
vec-on-unimplemented.stderr Use only one label for multiple unsatisfied bounds on type (typeck) 2024-01-26 20:47:19 +00:00