Skip to content

Commit 08d35a1

Browse files
committed
wuw
1 parent 6a941d8 commit 08d35a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

design/constraining-generic-parameters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ impl<const A: usize, const B: usize> Weird<{ A + B }> {
1414
```
1515

1616
When calling `Weird::<3>::returns_a()`, there is no way to restrict the generic parameters `A` or `B` so this has to error.
17-
If a generic parameter is used by an injective expression, then we should allow this. The most relevant case here are
17+
If a generic parameter is used by an injective expression, then we could allow this. The most relevant case here are
1818
constructors:
1919
```rust
2020
struct UsesOption<const N: Option<usize>>;

design/eval-errors-during-selection.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This would cause an error during coherence because we fail to evaluate `N - 1` w
1717
The same issue also exists during candidate selection, checking whether `[u8; 0]: Trait<0>` holds
1818
will cause the compiler to check whether the `[u8; N - 1]: Trait<N>` impl applies. For this the compiler
1919
first tries to unify the two `TraitRef`s, unifying `N - 1` - after substituting `0` for `N` - with `0`.
20-
Note that this unification happens before we ever consider any `where`-clauses
20+
Note that this unification happens before we ever consider any `where`-clauses.
2121

2222
### Can we avoid silent CTFE errors?
2323

0 commit comments

Comments
 (0)