Skip to content

Commit a5e07d8

Browse files
committed
Rusty effect systems
1 parent 9c715d7 commit a5e07d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

const-generic-const-fn-bounds.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ effect syntax nor effect semantics are proposed by this RFC, the following is ju
139139
purposes):
140140

141141
```rust
142-
impl<constness c, T: const(c) Add> const(c) Add for Foo<T> {
142+
impl<c: constness, T: const(c) Add> const(c) Add for Foo<T> {
143143
const(c) fn add(self, other: Self) -> Self {
144144
Foo(self.0 + other.0)
145145
}
@@ -166,7 +166,7 @@ const fn add<T: Add>(a: T, b: T) -> T {
166166
Using the same effect syntax from above:
167167

168168
```rust
169-
<constness c> const(c) fn add<T: const(c) Add>(a: T, b: T) -> T {
169+
<c: constness> const(c) fn add<T: const(c) Add>(a: T, b: T) -> T {
170170
a + b
171171
}
172172
```

0 commit comments

Comments
 (0)