mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-05 15:37:12 +00:00
18 lines
385 B
Rust
18 lines
385 B
Rust
use crate::spec::Target;
|
|
|
|
#[test]
|
|
fn report_unused_fields() {
|
|
let json = r#"
|
|
{
|
|
"arch": "powerpc64",
|
|
"data-layout": "e-m:e-i64:64-n32:64",
|
|
"llvm-target": "powerpc64le-elf",
|
|
"target-pointer-width": 64,
|
|
"code-mode": "foo"
|
|
}
|
|
"#;
|
|
let result = Target::from_json(json);
|
|
eprintln!("{result:#?}");
|
|
assert!(result.is_err());
|
|
}
|