]>
Commit | Line | Data |
---|---|---|
a2a8927a XL |
1 | error[E0282]: type annotations needed |
2 | --> $DIR/const_eval_resolve_canonical.rs:26:9 | |
3 | | | |
4 | LL | let mut _q = Default::default(); | |
923072b8 FG |
5 | | ^^^^^^ |
6 | | | |
7 | help: consider giving `_q` an explicit type | |
8 | | | |
9 | LL | let mut _q: _ = Default::default(); | |
10 | | +++ | |
a2a8927a XL |
11 | |
12 | error[E0283]: type annotations needed | |
13 | --> $DIR/const_eval_resolve_canonical.rs:29:10 | |
14 | | | |
15 | LL | _q = foo::<_, 2>(_q); | |
923072b8 | 16 | | ^^^^^^^^^^^ cannot infer the value of the constant `{ N + 1 }` |
a2a8927a XL |
17 | | |
18 | note: multiple `impl`s satisfying `(): Foo<{ N + 1 }>` found | |
19 | --> $DIR/const_eval_resolve_canonical.rs:8:1 | |
20 | | | |
21 | LL | impl Foo<0> for () { | |
22 | | ^^^^^^^^^^^^^^^^^^ | |
23 | ... | |
24 | LL | impl Foo<3> for () { | |
25 | | ^^^^^^^^^^^^^^^^^^ | |
26 | note: required by a bound in `foo` | |
27 | --> $DIR/const_eval_resolve_canonical.rs:18:9 | |
28 | | | |
29 | LL | fn foo<T, const N: usize>(_: T) -> <() as Foo<{ N + 1 }>>::Assoc | |
30 | | --- required by a bound in this | |
31 | LL | where | |
32 | LL | (): Foo<{ N + 1 }>, | |
33 | | ^^^^^^^^^^^^^^ required by this bound in `foo` | |
34 | ||
35 | error: aborting due to 2 previous errors | |
36 | ||
37 | Some errors have detailed explanations: E0282, E0283. | |
38 | For more information about an error, try `rustc --explain E0282`. |