| display_list::{DisplayList, FormatOptions}, |
| snippet::{Annotation, AnnotationType, Slice, Snippet, SourceAnnotation}, |
| label: Some("mismatched types"), |
| annotation_type: AnnotationType::Error, |
| footer: vec![Annotation { |
| "expected type: `snippet::Annotation`\n found type: `__&__snippet::Annotation`", |
| annotation_type: AnnotationType::Note, |
| source: " slices: vec![\"A\",", |
| origin: Some("src/multislice.rs"), |
| annotations: vec![SourceAnnotation { |
| label: "expected struct `annotate_snippets::snippet::Slice`, found reference", |
| annotation_type: AnnotationType::Error, |
| let dl = DisplayList::from(snippet); |