]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/static-closures.stderr
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / test / ui / static / static-closures.stderr
1 error[E0697]: closures cannot be static
2   --> $DIR/static-closures.rs:2:5
3    |
4 LL |     static || {};
5    |     ^^^^^^^^^
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0697`.