rust/src/test/ui/issues/issue-17025.rs
2018-12-25 21:08:33 -07:00

14 lines
234 B
Rust

// ignore-test the unsized enum no longer compiles
enum A {
B(char),
C([Box<A>]),
}
fn c(c:char) {
A::B(c);
//~^ ERROR cannot move a value of type A: the size of A cannot be statically determined
}
pub fn main() {}