rust/tests/ui/transmute/ambiguity-in-closure-arg.stderr
Michael Goulet 870ed4bfa2 Add test
2024-04-25 10:51:54 -04:00

10 lines
363 B
Plaintext

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`.