about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-03-07 18:42:09 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-03-08 10:41:14 +0100
commit4db15d89a08580ad0c825a0c67b4b14e103cf1cd (patch)
tree8c6bd340e02066d2584135c17bffe4e28e5108a0 /src/librustc_error_codes/error_codes
parent01a8b5f26e536a3bcd9449f62fd0b9b68ef3d650 (diff)
downloadrust-4db15d89a08580ad0c825a0c67b4b14e103cf1cd.tar.gz
rust-4db15d89a08580ad0c825a0c67b4b14e103cf1cd.zip
Cleanup E0391 explanation
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0391.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/librustc_error_codes/error_codes/E0391.md b/src/librustc_error_codes/error_codes/E0391.md
index 5db9ad16d08..dff50ccaa0b 100644
--- a/src/librustc_error_codes/error_codes/E0391.md
+++ b/src/librustc_error_codes/error_codes/E0391.md
@@ -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`.