rust/tests/ui/lint/use_suggestion_json.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
572 B
Rust
Raw Normal View History

//@ ignore-windows
2020-05-06 01:12:50 +00:00
//@ ignore-sgx std::os::fortanix_sgx::usercalls::alloc::Iter changes compiler suggestions
//@ compile-flags: --error-format pretty-json --json=diagnostic-rendered-ansi -Z unstable-options
// 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;
}