rust/tests/ui/issues/issue-47073-zero-padded-tuple-struct-indices.rs
2023-01-11 09:32:08 +00:00

13 lines
313 B
Rust

type Guilty = bool;
type FineDollars = u32;
struct Verdict(Guilty, Option<FineDollars>);
fn main() {
let justice = Verdict(true, Some(2718));
let _condemned = justice.00;
//~^ ERROR no field `00` on type `Verdict`
let _punishment = justice.001;
//~^ ERROR no field `001` on type `Verdict`
}