Skip to content

Commit 1ed74ee

Browse files
authored
Rollup merge of #74266 - GuillaumeGomez:cleanup-e0720, r=Dylan-DPC
Clean up E0720 explanation r? @Dylan-DPC
2 parents a7eff79 + 633d1a5 commit 1ed74ee

File tree

1 file changed

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

1 file changed

+5
-3
lines changed
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)