]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-24446.rs
Rollup merge of #91133 - terrarier2111:unsafe-diagnostic, r=jackh726
[rust.git] / src / test / ui / issues / issue-24446.rs
1 fn main() {
2     static foo: dyn Fn() -> u32 = || -> u32 {
3         //~^ ERROR the size for values of type
4         //~| ERROR cannot be shared between threads safely
5         0
6     };
7 }