use keypath::{keypath, KeyPath, Keyable}; #[derive(Keyable)] struct Container { names: Vec, } const _PATH: KeyPath, String> = keypath!(Container.names[0]); fn main() { }