We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bad849f commit 4956358Copy full SHA for 4956358
const-generic-const-fn-bounds.md
@@ -27,7 +27,7 @@ You can call methods of generic parameters of a const function, because they are
27
with that bound.
28
29
```rust
30
-const fn triple_add<T: Add>(a: T, b: T, c: T) -> T {
+const fn triple_add<T: Add<Output=T>>(a: T, b: T, c: T) -> T {
31
a + b + c
32
}
33
```
0 commit comments