2020-09-28 12:44:23 -05:00
|
|
|
error: unconstrained generic constant
|
2023-03-09 15:53:18 -06:00
|
|
|
--> $DIR/cross_crate_predicate.rs:7:44
|
2020-09-11 14:16:16 -05:00
|
|
|
|
|
|
|
|
LL | let _ = const_evaluatable_lib::test1::<T>();
|
2023-03-09 15:53:18 -06:00
|
|
|
| ^
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2021-07-31 11:26:55 -05: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 14:16:16 -05:00
|
|
|
|
|
2023-05-03 11:27:29 -05: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 12:44:23 -05:00
|
|
|
LL | [u8; std::mem::size_of::<T>() - 1]: Sized,
|
2021-07-31 11:26:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `test1`
|
2020-09-11 14:16:16 -05:00
|
|
|
|
2020-09-28 12:44:23 -05:00
|
|
|
error: unconstrained generic constant
|
2023-03-09 15:53:18 -06:00
|
|
|
--> $DIR/cross_crate_predicate.rs:7:44
|
2020-09-22 02:42:29 -05:00
|
|
|
|
|
|
|
|
LL | let _ = const_evaluatable_lib::test1::<T>();
|
2023-03-09 15:53:18 -06:00
|
|
|
| ^
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2021-07-31 11:26:55 -05: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 02:42:29 -05:00
|
|
|
|
|
2020-09-28 12:44:23 -05:00
|
|
|
LL | pub fn test1<T>() -> [u8; std::mem::size_of::<T>() - 1]
|
2021-07-31 11:26:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `test1`
|
2020-09-22 02:42:29 -05:00
|
|
|
|
2020-09-28 12:44:23 -05:00
|
|
|
error: unconstrained generic constant
|
2020-09-11 14:16:16 -05:00
|
|
|
--> $DIR/cross_crate_predicate.rs:7:13
|
|
|
|
|
|
|
|
|
LL | let _ = const_evaluatable_lib::test1::<T>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2021-07-31 11:26:55 -05: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 14:16:16 -05:00
|
|
|
|
|
2023-05-03 11:27:29 -05: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 12:44:23 -05:00
|
|
|
LL | [u8; std::mem::size_of::<T>() - 1]: Sized,
|
2021-07-31 11:26:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `test1`
|
2020-09-11 14:16:16 -05:00
|
|
|
|
2020-09-28 12:44:23 -05:00
|
|
|
error: unconstrained generic constant
|
2020-09-11 14:16:16 -05:00
|
|
|
--> $DIR/cross_crate_predicate.rs:7:13
|
|
|
|
|
|
|
|
|
LL | let _ = const_evaluatable_lib::test1::<T>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-06-10 06:52:00 -05:00
|
|
|
|
|
2021-07-31 11:26:55 -05: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 14:16:16 -05:00
|
|
|
|
|
2020-09-28 12:44:23 -05:00
|
|
|
LL | pub fn test1<T>() -> [u8; std::mem::size_of::<T>() - 1]
|
2021-07-31 11:26:55 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `test1`
|
2020-09-11 14:16:16 -05:00
|
|
|
|
2020-09-22 02:42:29 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2020-09-11 14:16:16 -05:00
|
|
|
|