summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17718-static-move.rs
blob: 015487a06aafeab403ccb40da3d5ab38e9c84f6d (plain)
1
2
3
4
5
6
7
struct Foo;
const INIT: Foo = Foo;
static FOO: Foo = INIT;

fn main() {
    let _a = FOO; //~ ERROR: cannot move out of static item
}