]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-17025.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-17025.rs
CommitLineData
c30ab7b3
SL
1// ignore-test the unsized enum no longer compiles
2
1a4d82fc
JJ
3enum A {
4 B(char),
5 C([Box<A>]),
6}
7
8fn c(c:char) {
9 A::B(c);
10 //~^ ERROR cannot move a value of type A: the size of A cannot be statically determined
223e47cc
LB
11}
12
13pub fn main() {}