2020-09-28 19:44:23 +02:00
|
|
|
error: unconstrained generic constant
|
2023-03-09 21:53:18 +00:00
|
|
|
--> $DIR/cross_crate_predicate.rs:7:44
|
2020-09-11 21:16:16 +02:00
|
|
|
|
|
|
|
|
LL | let _ = const_evaluatable_lib::test1::<T>();
|
2023-03-09 21:53:18 +00:00
|
|
|
| ^
|
2021-06-10 13:52:00 +02:00
|
|
|
|
|
2021-07-31 09:26:55 -07:00
|
|
|
= help: try adding a `where` bound using this expression: `where [(); std::mem::size_of::<T>() - 1]:`
|
|
|
|
note: required by a bound in `test1`
|
|
|
|
--> $DIR/auxiliary/const_evaluatable_lib.rs:6:10
|
2020-09-11 21:16:16 +02:00
|
|
|
|
|
2023-05-03 19:27:29 +03:00
|
|
|
LL | pub fn test1<T>() -> [u8; std::mem::size_of::<T>() - 1]
|
|
|
|
| ----- required by a bound in this function
|
|
|
|
LL | where
|
2020-09-28 19:44:23 +02:00
|
|
|
LL | [u8; std::mem::size_of::<T>() - 1]: Sized,
|
2021-07-31 09:26:55 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `test1`
|
2020-09-11 21:16:16 +02:00
|
|
|
|
2020-09-28 19:44:23 +02:00
|
|
|
error: unconstrained generic constant
|
2023-03-09 21:53:18 +00:00
|
|
|
--> $DIR/cross_crate_predicate.rs:7:44
|
2020-09-22 09:42:29 +02:00
|
|
|
|
|
|
|
|
LL | let _ = const_evaluatable_lib::test1::<T>();
|
2023-03-09 21:53:18 +00:00
|
|
|
| ^
|
2021-06-10 13:52:00 +02:00
|
|
|
|
|
2021-07-31 09:26:55 -07:00
|
|
|
= help: try adding a `where` bound using this expression: `where [(); std::mem::size_of::<T>() - 1]:`
|
|
|
|
note: required by a bound in `test1`
|
|
|
|
--> $DIR/auxiliary/const_evaluatable_lib.rs:4:27
|
2020-09-22 09:42:29 +02:00
|
|
|
|
|
2020-09-28 19:44:23 +02:00
|
|
|
LL | pub fn test1<T>() -> [u8; std::mem::size_of::<T>() - 1]
|
2021-07-31 09:26:55 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `test1`
|
2020-09-22 09:42:29 +02:00
|
|
|
|
2020-09-28 19:44:23 +02:00
|
|
|
error: unconstrained generic constant
|
2020-09-11 21:16:16 +02:00
|
|
|
--> $DIR/cross_crate_predicate.rs:7:13
|
|
|
|
|
|
|
|
|
LL | let _ = const_evaluatable_lib::test1::<T>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-06-10 13:52:00 +02:00
|
|
|
|
|
2021-07-31 09:26:55 -07:00
|
|
|
= help: try adding a `where` bound using this expression: `where [(); std::mem::size_of::<T>() - 1]:`
|
|
|
|
note: required by a bound in `test1`
|
|
|
|
--> $DIR/auxiliary/const_evaluatable_lib.rs:6:10
|
2020-09-11 21:16:16 +02:00
|
|
|
|
|
2023-05-03 19:27:29 +03:00
|
|
|
LL | pub fn test1<T>() -> [u8; std::mem::size_of::<T>() - 1]
|
|
|
|
| ----- required by a bound in this function
|
|
|
|
LL | where
|
2020-09-28 19:44:23 +02:00
|
|
|
LL | [u8; std::mem::size_of::<T>() - 1]: Sized,
|
2021-07-31 09:26:55 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `test1`
|
2020-09-11 21:16:16 +02:00
|
|
|
|
2020-09-28 19:44:23 +02:00
|
|
|
error: unconstrained generic constant
|
2020-09-11 21:16:16 +02:00
|
|
|
--> $DIR/cross_crate_predicate.rs:7:13
|
|
|
|
|
|
|
|
|
LL | let _ = const_evaluatable_lib::test1::<T>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-06-10 13:52:00 +02:00
|
|
|
|
|
2021-07-31 09:26:55 -07:00
|
|
|
= help: try adding a `where` bound using this expression: `where [(); std::mem::size_of::<T>() - 1]:`
|
|
|
|
note: required by a bound in `test1`
|
|
|
|
--> $DIR/auxiliary/const_evaluatable_lib.rs:4:27
|
2020-09-11 21:16:16 +02:00
|
|
|
|
|
2020-09-28 19:44:23 +02:00
|
|
|
LL | pub fn test1<T>() -> [u8; std::mem::size_of::<T>() - 1]
|
2021-07-31 09:26:55 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `test1`
|
2020-09-11 21:16:16 +02:00
|
|
|
|
2020-09-22 09:42:29 +02:00
|
|
|
error: aborting due to 4 previous errors
|
2020-09-11 21:16:16 +02:00
|
|
|
|