]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-enum-fields-struct-variant.rs
Rollup merge of #87185 - waterlens:issue-86499-fix, r=Mark-Simulacrum
[rust.git] / src / test / ui / wf / wf-enum-fields-struct-variant.rs
1 // Test that we check struct fields for WFedness.
2
3 #![feature(associated_type_defaults)]
4
5 #![allow(dead_code)]
6
7 struct IsCopy<T:Copy> {
8     value: T
9 }
10
11 enum AnotherEnum<A> {
12     AnotherVariant {
13         f: IsCopy<A> //~ ERROR E0277
14     }
15 }
16
17
18 fn main() { }