Skip to content

Commit 0bd0901

Browse files
Fix signature to work with example error
1 parent 97aca5f commit 0bd0901

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

posts/2022-08-11-Rust-1.63.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ on Linux.
106106

107107
### Turbofish for generics in functions with `impl Trait`
108108

109-
For a function signature like `fn foo<T>(value: T, f: impl FnOnce())`, it was an
110-
error to specify the concrete type of `T` via turbofish: `foo::<u32>(3, || {})`
109+
For a function signature like `fn foo<T>(value: T, f: impl Copy)`, it was an
110+
error to specify the concrete type of `T` via turbofish: `foo::<u32>(3, 3)`
111111
would fail with:
112112

113113
```text

0 commit comments

Comments
 (0)