]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / generic_const_exprs / unify-op-with-fn-call.stderr
1 error: unconstrained generic constant
2   --> $DIR/unify-op-with-fn-call.rs:28:12
3    |
4 LL |     bar2::<{ std::ops::Add::add(N, N) }>();
5    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = help: try adding a `where` bound using this expression: `where [(); { std::ops::Add::add(N, N) }]:`
8
9 error: aborting due to previous error
10