2022-06-30 04:43:29 +00:00
|
|
|
error: constant expression depends on a generic parameter
|
|
|
|
--> $DIR/issue-50439.rs:25:22
|
|
|
|
|
|
|
|
|
LL | let _ = [(); 0 - !!(<Bears<T> as ReflectDrop>::REFLECT_DROP) as usize];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this may fail depending on what value the parameter takes
|
|
|
|
|
2023-05-02 17:04:52 +00:00
|
|
|
error: constant expression depends on a generic parameter
|
|
|
|
--> $DIR/issue-50439.rs:25:17
|
|
|
|
|
|
|
|
|
LL | let _ = [(); 0 - !!(<Bears<T> as ReflectDrop>::REFLECT_DROP) as usize];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this may fail depending on what value the parameter takes
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2022-06-30 04:43:29 +00:00
|
|
|
|