2019-04-16 08:53:37 -05:00
|
|
|
// ignore-windows
|
2020-05-05 20:12:50 -05:00
|
|
|
// ignore-sgx std::os::fortanix_sgx::usercalls::alloc::Iter changes compiler suggestions
|
2019-07-17 14:52:56 -05:00
|
|
|
// compile-flags: --error-format pretty-json --json=diagnostic-rendered-ansi
|
2017-10-24 09:22:35 -05:00
|
|
|
|
|
|
|
// The output for humans should just highlight the whole span without showing
|
|
|
|
// the suggested replacement, but we also want to test that suggested
|
|
|
|
// replacement only removes one set of parentheses, rather than naïvely
|
|
|
|
// stripping away any starting or ending parenthesis characters—hence this
|
|
|
|
// test of the JSON error format.
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x: Iter;
|
|
|
|
}
|