Cleanup E0391 explanation
This commit is contained in:
parent
01a8b5f26e
commit
4db15d89a0
1 changed files with 5 additions and 3 deletions
|
@ -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`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue