3 // ignore-sgx std::os::fortanix_sgx::usercalls::alloc::Iter changes compiler suggestions
4 // compile-flags: --error-format pretty-json --json=diagnostic-rendered-ansi
6 // The output for humans should just highlight the whole span without showing
7 // the suggested replacement, but we also want to test that suggested
8 // replacement only removes one set of parentheses, rather than naïvely
9 // stripping away any starting or ending parenthesis characters—hence this
10 // test of the JSON error format.