summary refs log tree commit diff
path: root/src/test/ui/const-generics/const_evaluatable_checked/different-fn.stderr
blob: 1f6dddb04e56c91ce53910b2ea229d3791735f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: unconstrained generic constant
  --> $DIR/different-fn.rs:10:9
   |
LL |     [0; size_of::<Foo<T>>()]
   |         ^^^^^^^^^^^^^^^^^^^
   |
help: consider adding a `where` bound for this expression
  --> $DIR/different-fn.rs:10:9
   |
LL |     [0; size_of::<Foo<T>>()]
   |         ^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error