Skip to content

Commit dadd7bb

Browse files
committed
Fix diagnostic error
1 parent 9a64d79 commit dadd7bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_typeck/diagnostics.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ recursion limit (which can be set via the `recursion_limit` attribute).
516516
For a somewhat artificial example:
517517
518518
```compile_fail,E0055
519-
#![recursion_limit="2"]
519+
#![recursion_limit="5"]
520520
521521
struct Foo;
522522
@@ -526,9 +526,9 @@ impl Foo {
526526
527527
fn main() {
528528
let foo = Foo;
529-
let ref_foo = &&Foo;
529+
let ref_foo = &&&&&Foo;
530530
531-
// error, reached the recursion limit while auto-dereferencing `&&Foo`
531+
// error, reached the recursion limit while auto-dereferencing `&&&&&Foo`
532532
ref_foo.foo();
533533
}
534534
```

0 commit comments

Comments
 (0)