about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-02-10 17:28:54 +0100
committerGitHub <noreply@github.com>2020-02-10 17:28:54 +0100
commit1e26a1c4d10c5e5f06940ecdf8ee2af2a973082c (patch)
treeee670349a8f49b860acbb8532c9f22733458c7a7
parent4d1241f5158ffd66730e094d8f199ed654ed52ae (diff)
parent37e7b461778fab0c9dbe287e4eb3b7096ad6356f (diff)
downloadrust-1e26a1c4d10c5e5f06940ecdf8ee2af2a973082c.tar.gz
rust-1e26a1c4d10c5e5f06940ecdf8ee2af2a973082c.zip
Rollup merge of #68897 - GuillaumeGomez:clean-up-e0275, r=Dylan-DPC
clean up E0275 explanation

r? @Dylan-DPC
-rw-r--r--src/librustc_error_codes/error_codes/E0275.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0275.md b/src/librustc_error_codes/error_codes/E0275.md
index 836a9a95fa1..2d12fcea4ca 100644
--- a/src/librustc_error_codes/error_codes/E0275.md
+++ b/src/librustc_error_codes/error_codes/E0275.md
@@ -1,8 +1,6 @@
-This error occurs when there was a recursive trait requirement that overflowed
-before it could be evaluated. Often this means that there is unbounded
-recursion in resolving some type bounds.
+An evaluation of a trait requirement overflowed.
 
-For example, in the following code:
+Erroneous code example:
 
 ```compile_fail,E0275
 trait Foo {}
@@ -12,6 +10,10 @@ struct Bar<T>(T);
 impl<T> Foo for T where Bar<T>: Foo {}
 ```
 
+This error occurs when there was a recursive trait requirement that overflowed
+before it could be evaluated. This often means that there is an unbounded
+recursion in resolving some type bounds.
+
 To determine if a `T` is `Foo`, we need to check if `Bar<T>` is `Foo`. However,
 to do this check, we need to determine that `Bar<Bar<T>>` is `Foo`. To
 determine this, we check if `Bar<Bar<Bar<T>>>` is `Foo`, and so on. This is