The following code:
fn bar() -> Vec<impl Copy> {
panic!()
}
Currently gives the following error:
error[E0283]: type annotations required: cannot resolve `_: std::marker::Copy`
--> src/lib.rs:1:17
|
1 | fn bar() -> Vec<impl Copy> {
| ^^^^^^^^^
|
= note: the return type of a function must have a statically known size
This message has a weird span, and doesn't give any clue that the problem lies with the call to panic!
The following code:
Currently gives the following error:
This message has a weird span, and doesn't give any clue that the problem lies with the call to
panic!