summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-50439.stderr
blob: 7a8cd45ecc7d1c1696e19d0afc3396ac91525c2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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