summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-75907_b.rs
blob: e30747782339cb4c675e783ba043beeb3f6a78cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test for for diagnostic improvement issue #75907, extern crate
// aux-build:issue-75907.rs

extern crate issue_75907 as a;

use a::{make_bar, Bar, Foo};

fn main() {
    let Bar(x, y, z) = make_bar();
    //~^ ERROR cannot match against a tuple struct which contains private fields

    let Foo(x, y, z) = Foo::new();
    //~^ ERROR cannot match against a tuple struct which contains private fields
}