]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3668-2.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-3668-2.rs
1 // run-rustfix
2 #![allow(unused_variables, dead_code)]
3 fn f(x:isize) {
4     static child: isize = x + 1;
5     //~^ ERROR attempt to use a non-constant value in a constant
6 }
7
8 fn main() {}