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