summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0013.rs
blob: 9b3982a785b7fa845ae277cea8029adbfb44f5f0 (plain)
1
2
3
4
static X: i32 = 42;
const Y: i32 = X; //~ ERROR constants cannot refer to statics [E0013]

fn main() {}