add attribute #[feature(struct_variant)] and #[feature(globs)] + fix examples