We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cfb2f95 + 4db15d8 commit 40b405fCopy full SHA for 40b405f
src/librustc_error_codes/error_codes/E0391.md
@@ -1,7 +1,6 @@
1
-This error indicates that some types or traits depend on each other
2
-and therefore cannot be constructed.
+A type dependency cycle has been encountered.
3
4
-The following example contains a circular dependency between two traits:
+Erroneous code example:
5
6
```compile_fail,E0391
7
trait FirstTrait : SecondTrait {
@@ -12,3 +11,6 @@ trait SecondTrait : FirstTrait {
12
11
13
}
14
```
+
15
+The previous example contains a circular dependency between two traits:
16
+`FirstTrait` depends on `SecondTrait` which itself depends on `FirstTrait`.
0 commit comments