]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union/union-sized-field.rs
Rollup merge of #93926 - PatchMixolydic:bugfix/must_use-on-exprs, r=cjgillot
[rust.git] / src / test / ui / union / union-sized-field.rs
1 #![feature(untagged_unions)]
2
3 union Foo<T: ?Sized> {
4     value: T,
5     //~^ ERROR the size for values of type
6 }
7
8 struct Foo2<T: ?Sized> {
9     value: T,
10     //~^ ERROR the size for values of type
11     t: u32,
12 }
13
14 enum Foo3<T: ?Sized> {
15     Value(T),
16     //~^ ERROR the size for values of type
17 }
18
19 fn main() {}