Action out of place.
          #2540   Compile-time warning
          Action out of place.
Explanation
 Some actions should not be used in certain contexts, as they will fail at run-time. For example, since a string sink function does not have an attached #current-output, output should not be used at the outer scope of such a function; any output action should appear within a using output as scope.