summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/generic_const_exprs/unify-op-with-fn-call.stderr
blob: d18c7916f5f6f3336f611ddb4755db2b308583a7 (plain)
1
2
3
4
5
6
7
8
9
10
error: unconstrained generic constant
  --> $DIR/unify-op-with-fn-call.rs:28:12
   |
LL |     bar2::<{ std::ops::Add::add(N, N) }>();
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: try adding a `where` bound using this expression: `where [(); { std::ops::Add::add(N, N) }]:`

error: aborting due to previous error