2021-01-07 18:44:08 -06:00
|
|
|
// run-rustfix
|
2017-02-08 14:50:29 -06:00
|
|
|
fn main() {
|
|
|
|
let foo = 42u32;
|
2021-01-07 18:44:08 -06:00
|
|
|
#[allow(unused_variables, non_snake_case)]
|
2017-02-08 14:50:29 -06:00
|
|
|
const FOO : u32 = foo;
|
2019-02-07 09:03:12 -06:00
|
|
|
//~^ ERROR attempt to use a non-constant value in a constant
|
2017-02-08 14:50:29 -06:00
|
|
|
}
|