]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/const_evaluatable_checked/different-fn.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.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: try adding a `where` bound using this expression: `where [u8; size_of::<Foo<T>>()]: Sized`
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