about summary refs log tree commit diff
path: root/tests/ui/transmute/ambiguity-in-closure-arg.stderr
blob: 24a10a6d210b4ac1a3af57966be1ca5fa91ab196 (plain)
1
2
3
4
5
6
7
8
9
error[E0282]: type annotations needed
  --> $DIR/ambiguity-in-closure-arg.rs:6:44
   |
LL |     unsafe { std::mem::transmute::<_, ()>(|o_b: Unconstrained<_>| {}) };
   |                                            ^^^^^^^^^^^^^^^^^^^^^ cannot infer type

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0282`.