diff options
| author | Michael Goulet <michael@errs.io> | 2023-09-10 03:33:07 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-10-02 23:14:29 +0000 |
| commit | 07851679cd8ced5933095c4173d3877c1abc96dd (patch) | |
| tree | 3ed129e5c177f5d1d9df0874ef8f20c67a7b43e2 /tests/ui/generic-const-items | |
| parent | 8be12f4ed70c55652fefdec63d094974d00e164c (diff) | |
| download | rust-07851679cd8ced5933095c4173d3877c1abc96dd.tar.gz rust-07851679cd8ced5933095c4173d3877c1abc96dd.zip | |
Point out the actual mismatch error
Diffstat (limited to 'tests/ui/generic-const-items')
| -rw-r--r-- | tests/ui/generic-const-items/unsatisfied-bounds.stderr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/generic-const-items/unsatisfied-bounds.stderr b/tests/ui/generic-const-items/unsatisfied-bounds.stderr index 2cee53431a4..14894cef770 100644 --- a/tests/ui/generic-const-items/unsatisfied-bounds.stderr +++ b/tests/ui/generic-const-items/unsatisfied-bounds.stderr @@ -17,6 +17,7 @@ LL | let () = K::<()>; | ^^ the trait `From<()>` is not implemented for `Infallible` | = help: the trait `From<!>` is implemented for `Infallible` + = help: for that trait implementation, expected `!`, found `()` note: required by a bound in `K` --> $DIR/unsatisfied-bounds.rs:12:17 | @@ -48,6 +49,7 @@ LL | let _ = <() as Trait<&'static str>>::B::<()>; | ^^ the trait `From<()>` is not implemented for `Infallible` | = help: the trait `From<!>` is implemented for `Infallible` + = help: for that trait implementation, expected `!`, found `()` note: required by a bound in `Trait::B` --> $DIR/unsatisfied-bounds.rs:21:21 | |
