]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/static-closures.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / static / static-closures.rs
1 fn main() {
2     static || {};
3     //~^ ERROR closures cannot be static
4 }