@@ -4,7 +4,7 @@ error: unconstrained generic constant
44LL | let _ = const_evaluatable_lib::test1::<T>();
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 |
7- help: try adding a `where` bound using this expression: where [u8; std::mem::size_of::<T>() - 1]: Sized
7+ help: try adding a `where` bound using this expression: ` where [u8; std::mem::size_of::<T>() - 1]: Sized`
88 --> $DIR/auxiliary/const_evaluatable_lib.rs:6:10
99 |
1010LL | [u8; std::mem::size_of::<T>() - 1]: Sized,
@@ -16,7 +16,7 @@ error: unconstrained generic constant
1616LL | let _ = const_evaluatable_lib::test1::<T>();
1717 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818 |
19- help: try adding a `where` bound using this expression: where [u8; std::mem::size_of::<T>() - 1]: Sized
19+ help: try adding a `where` bound using this expression: ` where [u8; std::mem::size_of::<T>() - 1]: Sized`
2020 --> $DIR/auxiliary/const_evaluatable_lib.rs:4:27
2121 |
2222LL | pub fn test1<T>() -> [u8; std::mem::size_of::<T>() - 1]
@@ -28,7 +28,7 @@ error: unconstrained generic constant
2828LL | let _ = const_evaluatable_lib::test1::<T>();
2929 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3030 |
31- help: try adding a `where` bound using this expression: where [u8; std::mem::size_of::<T>() - 1]: Sized
31+ help: try adding a `where` bound using this expression: ` where [u8; std::mem::size_of::<T>() - 1]: Sized`
3232 --> $DIR/auxiliary/const_evaluatable_lib.rs:6:10
3333 |
3434LL | [u8; std::mem::size_of::<T>() - 1]: Sized,
@@ -40,7 +40,7 @@ error: unconstrained generic constant
4040LL | let _ = const_evaluatable_lib::test1::<T>();
4141 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4242 |
43- help: try adding a `where` bound using this expression: where [u8; std::mem::size_of::<T>() - 1]: Sized
43+ help: try adding a `where` bound using this expression: ` where [u8; std::mem::size_of::<T>() - 1]: Sized`
4444 --> $DIR/auxiliary/const_evaluatable_lib.rs:4:27
4545 |
4646LL | pub fn test1<T>() -> [u8; std::mem::size_of::<T>() - 1]
0 commit comments