We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f844ea1 commit 633d1a5Copy full SHA for 633d1a5
src/librustc_error_codes/error_codes/E0720.md
@@ -1,11 +1,13 @@
1
An `impl Trait` type expands to a recursive type.
2
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]`:
+Erroneous code example:
6
7
```compile_fail,E0720
8
fn make_recursive_type() -> impl Sized {
9
[make_recursive_type(), make_recursive_type()]
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