about summary refs log tree commit diff
path: root/tests/ui/specialization/issue-51892.stderr
blob: f327f10438dfb59d31900b7efd36248aceb64216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: unconstrained generic constant
  --> $DIR/issue-51892.rs:14:5
   |
LL |     type Type = [u8; std::mem::size_of::<<T as Trait>::Type>()];
   |     ^^^^^^^^^
   |
help: try adding a `where` bound
   |
LL |     type Type = [u8; std::mem::size_of::<<T as Trait>::Type>()] where [(); std::mem::size_of::<<T as Trait>::Type>()]:;
   |                                                                 ++++++++++++++++++++++++++++++++++++++++++++++++++++++

error: aborting due to 1 previous error