rust/tests/ui/issues/issue-4736.rs
2023-01-11 09:32:08 +00:00

6 lines
127 B
Rust

struct NonCopyable(());
fn main() {
let z = NonCopyable{ p: () }; //~ ERROR struct `NonCopyable` has no field named `p`
}