about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2019-01-03 01:30:30 -0500
committerAaron Hill <aa1ronham@gmail.com>2019-01-03 21:58:57 -0500
commitdadd7bb6f46b1d646abedcb327b4da111caf042e (patch)
tree9917adbf6ff436a649978be6d68a6edc6b8299e7
parent9a64d79365fb0eaa52afb0be9265c86d9fe3e490 (diff)
downloadrust-dadd7bb6f46b1d646abedcb327b4da111caf042e.tar.gz
rust-dadd7bb6f46b1d646abedcb327b4da111caf042e.zip
Fix diagnostic error
-rw-r--r--src/librustc_typeck/diagnostics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index 5910a8b3110..0645db66c69 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -516,7 +516,7 @@ recursion limit (which can be set via the `recursion_limit` attribute).
 For a somewhat artificial example:
 
 ```compile_fail,E0055
-#![recursion_limit="2"]
+#![recursion_limit="5"]
 
 struct Foo;
 
@@ -526,9 +526,9 @@ impl Foo {
 
 fn main() {
     let foo = Foo;
-    let ref_foo = &&Foo;
+    let ref_foo = &&&&&Foo;
 
-    // error, reached the recursion limit while auto-dereferencing `&&Foo`
+    // error, reached the recursion limit while auto-dereferencing `&&&&&Foo`
     ref_foo.foo();
 }
 ```