]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/use_suggestion_json.rs
Rollup merge of #72548 - rossmacarthur:add-mcve-for-50687, r=nikomatsakis
[rust.git] / src / test / ui / lint / use_suggestion_json.rs
1 // ignore-cloudabi
2 // ignore-windows
3 // ignore-sgx std::os::fortanix_sgx::usercalls::alloc::Iter changes compiler suggestions
4 // compile-flags: --error-format pretty-json --json=diagnostic-rendered-ansi
5
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.
11
12 fn main() {
13     let x: Iter;
14 }