Mechanistic studies on intramolecular C-H trifluoromethoxylation of (hetero)arenes via OCF3-migration.