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 a2a3b05 commit 3229d4aCopy full SHA for 3229d4a
src/types/impl-trait.md
@@ -98,6 +98,7 @@ The function:
98
99
```rust,ignore
100
fn foo<T: Trait>() -> T {
101
+}
102
```
103
104
allows the caller to determine the return type, `T`, and the function returns that type.
@@ -106,6 +107,7 @@ The function:
106
107
108
109
fn foo() -> impl Trait {
110
111
112
113
doesn't allow the caller to determine the return type.
0 commit comments