summary refs log tree commit diff
path: root/src/test/ui/issues/issue-3668-2.rs
blob: 525f6f5684e70f52a31dde057384e7f67d1bb700 (plain)
1
2
3
4
5
6
fn f(x:isize) {
    static child: isize = x + 1;
    //~^ ERROR attempt to use a non-constant value in a constant
}

fn main() {}