2021-01-07 18:44:08 -06:00
|
|
|
// run-rustfix
|
|
|
|
#![allow(unused_variables, dead_code)]
|
2015-01-08 04:54:35 -06:00
|
|
|
fn f(x:isize) {
|
2015-02-05 01:19:07 -06:00
|
|
|
static child: isize = x + 1;
|
2019-02-07 09:03:12 -06:00
|
|
|
//~^ ERROR attempt to use a non-constant value in a constant
|
2012-10-15 16:33:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|