5 const fn foo(x: u32) -> u32 {
11 //~^ WARN any use of this value will cause
12 const Y: u32 = foo(0 - 1);
13 //~^ WARN any use of this value will cause
14 println!("{} {}", X, Y);
15 //~^ ERROR evaluation of constant value failed
16 //~| ERROR evaluation of constant value failed
17 //~| WARN erroneous constant used [const_err]
18 //~| WARN erroneous constant used [const_err]