Also modifies all incremental cases using `#expect_error` to include the errors and notes which are expected.
This isn't exactly the case provided in #11290, but is a slightly simpler case which I know would have triggered the same bug in the old implementation of incremental compilation. Resolves: #11290