mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
19 lines
719 B
Plaintext
19 lines
719 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: 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
|
|
|