Error codes · Scopes, tasks and resources
PW2001
handle_escapes
The program must hold to this: a handle cannot outlive the scope that owns it.
Reading the diagnostic
pw check prints the code in brackets, [PW2001], with the sentence above and the place in your program. Errors and diagnostics explains how to read one, and every code is listed with its rule.