]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const_evaluatable_checked/different-fn.stderr
look at assoc ct, check the type of nodes
[rust.git] / src / test / ui / const-generics / const_evaluatable_checked / different-fn.stderr
1 error: unconstrained generic constant
2   --> $DIR/different-fn.rs:10:9
3    |
4 LL |     [0; size_of::<Foo<T>>()]
5    |         ^^^^^^^^^^^^^^^^^^^
6    |
7 help: consider adding a `where` bound for this expression
8   --> $DIR/different-fn.rs:10:9
9    |
10 LL |     [0; size_of::<Foo<T>>()]
11    |         ^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14