]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-44239.rs
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / ui / issues / issue-44239.rs
1 // run-rustfix
2 #![allow(dead_code, non_upper_case_globals)]
3 fn main() {
4     let n: usize = 0;
5
6     struct Foo;
7     impl Foo {
8         const N: usize = n;
9         //~^ ERROR attempt to use a non-constant value
10     }
11 }