Skip to content

Commit 76a1c5a

Browse files
committed
w
1 parent af16a10 commit 76a1c5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solve/candidate-preference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ where
3030
}
3131
```
3232

33-
This preference is incorrect in case the builtin impl has a nested goal which relies on a where-clause.
33+
This preference is incorrect in case the builtin impl has a nested goal which relies on a non-param where-clause
3434
```rust
3535
struct MyType<'a, T: ?Sized>(&'a (), T);
3636
fn is_sized<T>() {}
@@ -39,7 +39,7 @@ where
3939
(MyType<'a, T>,): Sized,
4040
MyType<'static, T>: Sized,
4141
{
42-
// The where-bound is trivial whihe builtin `Sized` impl for tuples
42+
// The where-bound is trivial while the builtin `Sized` impl for tuples
4343
// requires proving `MyType<'a, T>: Sized` which can only be proven by
4444
// using the where-clause, adding an unnecessary `'static` constraint.
4545
is_sized::<(MyType<'a, T>,)>();

0 commit comments

Comments
 (0)