Closed RaitoBezarius closed 1 month ago
Code snippet that is not correctly supported:
let [a, b @ .., c] = x
Current Charon output:
On https://github.com/conradludgate/rustyguard rustyguard-types crate:
rustyguard-types
error: Unexpected ProjectionElem::Subslice --> rustyguard-types/src/lib.rs:189:22 | 189 | let [header, payload @ .., tag] = segments else { | ^^^^^^^
Expected behavior:
Equivalent to a = segments[0]; b = segments[1:n - 1]; c = segments[n - 1];
a = segments[0]; b = segments[1:n - 1]; c = segments[n - 1];
Code snippet that is not correctly supported:
Current Charon output:
On https://github.com/conradludgate/rustyguard
rustyguard-types
crate:Expected behavior:
Equivalent to
a = segments[0]; b = segments[1:n - 1]; c = segments[n - 1];