Skip to content

Commit 633d1a5

Browse files
Clean up E0720 explanation
1 parent f844ea1 commit 633d1a5

File tree

1 file changed

+5
-3
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+5
-3
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
An `impl Trait` type expands to a recursive type.
22

3-
An `impl Trait` type must be expandable to a concrete type that contains no
4-
`impl Trait` types. For example the following example tries to create an
5-
`impl Trait` type `T` that is equal to `[T, T]`:
3+
Erroneous code example:
64

75
```compile_fail,E0720
86
fn make_recursive_type() -> impl Sized {
97
[make_recursive_type(), make_recursive_type()]
108
}
119
```
10+
11+
An `impl Trait` type must be expandable to a concrete type that contains no
12+
`impl Trait` types. For example the previous example tries to create an
13+
`impl Trait` type `T` that is equal to `[T, T]`.

0 commit comments

Comments
 (0)