fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
859 B23 linesraw
1error[E0282]: type annotations needed
2  --> $DIR/exponential-trait-goals.rs:17:5
3   |
4LL |     impls::<W<_>>();
5   |     ^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `impls`
6
7error[E0275]: overflow evaluating the requirement `W<_>: Trait`
8  --> $DIR/exponential-trait-goals.rs:17:13
9   |
10LL |     impls::<W<_>>();
11   |             ^^^^
12   |
13   = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`exponential_trait_goals`)
14note: required by a bound in `impls`
15  --> $DIR/exponential-trait-goals.rs:14:13
16   |
17LL | fn impls<T: Trait>() {}
18   |             ^^^^^ required by this bound in `impls`
19
20error: aborting due to 2 previous errors
21
22Some errors have detailed explanations: E0275, E0282.
23For more information about an error, try `rustc --explain E0275`.