]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-88643.stderr
Auto merge of #98100 - bjorn3:use_object_for_bitcode_reading, r=wesleywiser
[rust.git] / src / test / ui / typeck / issue-88643.stderr
1 error[E0121]: the placeholder `_` is not allowed within types on item signatures for static items
2   --> $DIR/issue-88643.rs:10:56
3    |
4 LL | static CALLBACKS: HashMap<*const dyn T, dyn FnMut(&mut _) + 'static> = HashMap::new();
5    |                                                        ^ not allowed in type signatures
6
7 error[E0121]: the placeholder `_` is not allowed within types on item signatures for static items
8   --> $DIR/issue-88643.rs:13:33
9    |
10 LL | static CALLBACKS2: Vec<dyn Fn(& _)> = Vec::new();
11    |                                 ^ not allowed in type signatures
12
13 error[E0121]: the placeholder `_` is not allowed within types on item signatures for static items
14   --> $DIR/issue-88643.rs:16:36
15    |
16 LL | static CALLBACKS3: Option<dyn Fn(& _)> = None;
17    |                                    ^ not allowed in type signatures
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0121`.