We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a7eff79 + 633d1a5 commit 1ed74eeCopy full SHA for 1ed74ee
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