rust/tests/ui/transmute/ambiguity-in-closure-arg.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
363 B
Plaintext
Raw Normal View History

2024-04-15 19:13:31 -05:00
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`.