mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-20 12:35:11 +00:00
15 lines
400 B
Rust
15 lines
400 B
Rust
// Test 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
|
|
}
|