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