Rollup merge of #69807 - GuillaumeGomez:cleanup-e0391, r=Dylan-DPC

Cleanup E0391 explanation

r? @Dylan-DPC
This commit is contained in:
Mazdak Farrokhzad 2020-03-08 20:54:35 +01:00 committed by GitHub
commit 40b405f2d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
This error indicates that some types or traits depend on each other
and therefore cannot be constructed.
A type dependency cycle has been encountered.
The following example contains a circular dependency between two traits:
Erroneous code example:
```compile_fail,E0391
trait FirstTrait : SecondTrait {
@ -12,3 +11,6 @@ trait SecondTrait : FirstTrait {
}
```
The previous example contains a circular dependency between two traits:
`FirstTrait` depends on `SecondTrait` which itself depends on `FirstTrait`.