mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
a9841936fe
Change the implicit `Sized` `Obligation` `Span` for call expressions to include the whole expression. This aids the existing deduplication machinery to reduce the number of errors caused by a single unsized expression.
62 lines
1.7 KiB
Plaintext
62 lines
1.7 KiB
Plaintext
error[E0275]: overflow evaluating the requirement `J: Send`
|
|
--> $DIR/recursion_limit.rs:34:5
|
|
|
|
|
LL | is_send::<A>();
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "20"]` attribute to your crate (`recursion_limit`)
|
|
note: required because it appears within the type `I`
|
|
--> $DIR/recursion_limit.rs:23:9
|
|
|
|
|
LL | link! { I, J }
|
|
| ^
|
|
note: required because it appears within the type `H`
|
|
--> $DIR/recursion_limit.rs:22:9
|
|
|
|
|
LL | link! { H, I }
|
|
| ^
|
|
note: required because it appears within the type `G`
|
|
--> $DIR/recursion_limit.rs:21:9
|
|
|
|
|
LL | link! { G, H }
|
|
| ^
|
|
note: required because it appears within the type `F`
|
|
--> $DIR/recursion_limit.rs:20:9
|
|
|
|
|
LL | link! { F, G }
|
|
| ^
|
|
note: required because it appears within the type `E`
|
|
--> $DIR/recursion_limit.rs:19:9
|
|
|
|
|
LL | link! { E, F }
|
|
| ^
|
|
note: required because it appears within the type `D`
|
|
--> $DIR/recursion_limit.rs:18:9
|
|
|
|
|
LL | link! { D, E }
|
|
| ^
|
|
note: required because it appears within the type `C`
|
|
--> $DIR/recursion_limit.rs:17:9
|
|
|
|
|
LL | link! { C, D }
|
|
| ^
|
|
note: required because it appears within the type `B`
|
|
--> $DIR/recursion_limit.rs:16:9
|
|
|
|
|
LL | link! { B, C }
|
|
| ^
|
|
note: required because it appears within the type `A`
|
|
--> $DIR/recursion_limit.rs:15:9
|
|
|
|
|
LL | link! { A, B }
|
|
| ^
|
|
note: required by a bound in `is_send`
|
|
--> $DIR/recursion_limit.rs:31:14
|
|
|
|
|
LL | fn is_send<T:Send>() { }
|
|
| ^^^^ required by this bound in `is_send`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0275`.
|