rust/tests/ui/binop
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
..
binary-minus-without-space.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binary-op-on-double-ref.fixed Improved wording of error messages of missing remainder implementations 2023-01-30 19:54:33 +00:00
binary-op-on-double-ref.rs Improved wording of error messages of missing remainder implementations 2023-01-30 19:54:33 +00:00
binary-op-on-double-ref.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
binary-op-on-fn-ptr-eq.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binary-op-suggest-deref.rs Fix ICE when suggesting dereferencing binop operands 2024-01-12 17:49:37 -08:00
binary-op-suggest-deref.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
binop-bitxor-str.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-bitxor-str.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
binop-consume-args.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-consume-args.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-fail-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-logic-float.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-logic-float.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-logic-int.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-logic-int.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-move-semantics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-move-semantics.stderr Do not set up wrong span for adjustments 2023-07-10 20:09:26 +00:00
binop-mul-bool.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-mul-bool.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
binop-mul-i32-f32.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-mul-i32-f32.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
binop-panic.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-typeck.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binop-typeck.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
binops-issue-22743.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
binops.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
borrow-suggestion-109352-2.rs Improve diagnostic for wrong borrow on binary operations 2023-08-01 10:08:17 +02:00
borrow-suggestion-109352-2.stderr Improve diagnostic for wrong borrow on binary operations 2023-08-01 10:08:17 +02:00
borrow-suggestion-109352.fixed Improve diagnostic for wrong borrow on binary operations 2023-08-01 10:08:17 +02:00
borrow-suggestion-109352.rs Improve diagnostic for wrong borrow on binary operations 2023-08-01 10:08:17 +02:00
borrow-suggestion-109352.stderr Improve diagnostic for wrong borrow on binary operations 2023-08-01 10:08:17 +02:00
eq-arr.rs Provide RHS type hint when reporting operator error 2023-04-27 01:34:03 +00:00
eq-arr.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
eq-vec.rs Provide RHS type hint when reporting operator error 2023-04-27 01:34:03 +00:00
eq-vec.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
false-binop-caused-by-missing-semi.fixed Silence redundant error on typo resulting on binop 2023-11-06 17:38:06 +00:00
false-binop-caused-by-missing-semi.rs Silence redundant error on typo resulting on binop 2023-11-06 17:38:06 +00:00
false-binop-caused-by-missing-semi.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-3820.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-3820.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-25916.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-28837.rs Improved wording of error messages of missing remainder implementations 2023-01-30 19:54:33 +00:00
issue-28837.stderr Provide RHS type hint when reporting operator error 2023-04-27 01:34:03 +00:00
issue-77910-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-77910-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-77910-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-77910-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
issue-93927.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-93927.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
operator-multidispatch.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
operator-overloading.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
placement-syntax.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
placement-syntax.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
shift-various-bad-types.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
shift-various-bad-types.stderr Don't sort strings right after we just sorted by types 2023-06-27 23:31:06 +00:00
structured-compare.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00