summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-4736.rs
blob: 799d2d480986051da6672018104c2dedb3dfa1e2 (plain)
1
2
3
4
5
struct NonCopyable(());

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