2022-10-12 16:12:19 +00:00
|
|
|
// Test for diagnostic improvement issue #75907, extern crate
|
2020-09-08 22:14:09 +00:00
|
|
|
// aux-build:issue-75907.rs
|
|
|
|
|
|
|
|
extern crate issue_75907 as a;
|
|
|
|
|
2021-05-08 08:07:27 +00:00
|
|
|
use a::{make_bar, Bar, Foo};
|
2020-09-08 22:14:09 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let Bar(x, y, z) = make_bar();
|
2020-10-26 14:36:48 +00:00
|
|
|
//~^ ERROR cannot match against a tuple struct which contains private fields
|
2021-05-08 08:07:27 +00:00
|
|
|
|
|
|
|
let Foo(x, y, z) = Foo::new();
|
|
|
|
//~^ ERROR cannot match against a tuple struct which contains private fields
|
2020-09-08 22:14:09 +00:00
|
|
|
}
|