Sign in
rust
/
rust-lang
/
rust
/
refs/heads/main
/
.
/
tests
/
ui
/
structs
/
tuple-struct-init-with-named-field.rs
blob: 586d96284e170b964847a0d5e21b7092dc4235be [
file
] [
edit
]
//! Regression test for <https://github.com/rust-lang/rust/issues/4736>.
//! This used to ICE.
struct
NonCopyable
(());
fn
main
()
{
let
z
=
NonCopyable
{
p
:
()
};
//~ ERROR struct `NonCopyable` has no field named `p`
}