---
- name: Mapping with anchor on document start line
  from: '@perlpunk'
  tags: anchor error header mapping
  fail: true
  yaml: |
    --- &anchor a: b
  tree: |
    +STR
     +DOC ---