I am adding a test to compile-fail that has // error-pattern: unresolved name: a to test the test I changed the line to // error-pattern: unresolved name: x and to my surprise the test passed changing it to something like // error-pattern: unresolved namex: a correctly causes it to fail