rust/tests/ui/consts/issue-50439.stderr
2023-01-11 09:32:08 +00:00

11 lines
377 B
Plaintext

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
error: aborting due to previous error