]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/use_suggestion_json.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / use_suggestion_json.rs
1 // ignore-windows
2 // ignore-sgx std::os::fortanix_sgx::usercalls::alloc::Iter changes compiler suggestions
3 // compile-flags: --error-format pretty-json --json=diagnostic-rendered-ansi
4
5 // The output for humans should just highlight the whole span without showing
6 // the suggested replacement, but we also want to test that suggested
7 // replacement only removes one set of parentheses, rather than naïvely
8 // stripping away any starting or ending parenthesis characters—hence this
9 // test of the JSON error format.
10
11 fn main() {
12     let x: Iter;
13 }