]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-17718-static-move.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / issue-17718-static-move.rs
1 struct Foo;
2 const INIT: Foo = Foo;
3 static FOO: Foo = INIT;
4
5 fn main() {
6     let _a = FOO; //~ ERROR: cannot move out of static item
7 }