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