]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5216.stderr
Merge pull request #16 from ian-h-chamberlain/feature/target-thread-local
[rust.git] / src / test / ui / issues / issue-5216.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-5216.rs:3:21
3    |
4 LL | pub static C: S = S(f);
5    |                     ^ expected struct `Box`, found fn item
6    |
7    = note: expected struct `Box<(dyn FnMut() + Sync + 'static)>`
8              found fn item `fn() {f}`
9
10 error[E0308]: mismatched types
11   --> $DIR/issue-5216.rs:8:19
12    |
13 LL | pub static D: T = g;
14    |                   ^ expected struct `Box`, found fn item
15    |
16    = note: expected struct `Box<(dyn FnMut() + Sync + 'static)>`
17              found fn item `fn() {g}`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.