File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ // normalize-stderr-test "the requirement `.*`" -> "the requirement `...`"
2+ // normalize-stderr-test "required for `.*` to implement `.*`" -> "required for `...` to implement `...`"
3+ // normalize-stderr-test: ".*the full type name has been written to.*\n" -> ""
4+
5+ // Currently this fatally aborts instead of hanging.
6+ // Make sure at least that this doesn't turn into a hang.
7+
8+ fn f ( ) {
9+ foo :: < _ > ( ) ;
10+ //~^ ERROR overflow evaluating the requirement
11+ }
12+
13+ fn foo < B > ( )
14+ where
15+ Vec < [ [ [ B ; 1 ] ; 1 ] ; 1 ] > : PartialEq < B > ,
16+ {
17+ }
18+
19+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ error[E0275]: overflow evaluating the requirement `...`
2+ --> $DIR/hang-in-overflow.rs:9:5
3+ |
4+ LL | foo::<_>();
5+ | ^^^^^^^^
6+ |
7+ = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`hang_in_overflow`)
8+ = note: required for `...` to implement `...`
9+ = note: 127 redundant requirements hidden
10+ = note: required for `...` to implement `...`
11+ note: required by a bound in `foo`
12+ --> $DIR/hang-in-overflow.rs:15:28
13+ |
14+ LL | fn foo<B>()
15+ | --- required by a bound in this
16+ LL | where
17+ LL | Vec<[[[B; 1]; 1]; 1]>: PartialEq<B>,
18+ | ^^^^^^^^^^^^ required by this bound in `foo`
19+
20+ error: aborting due to previous error
21+
22+ For more information about this error, try `rustc --explain E0275`.
You can’t perform that action at this time.
0 commit comments