about summary refs log tree commit diff
path: root/tests/ui/structs/tuple-struct-field-naming-47073.rs
blob: 6cf27e55c4bbbfa5d0b5ff216ff5588f23219757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// https://github.com/rust-lang/rust/issues/47073
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`
}