]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17025.rs
rustdoc supports const re-exports
[rust.git] / src / test / ui / issues / issue-17025.rs
1 // ignore-test the unsized enum no longer compiles
2
3 enum A {
4     B(char),
5     C([Box<A>]),
6 }
7
8 fn c(c:char) {
9     A::B(c);
10     //~^ ERROR cannot move a value of type A: the size of A cannot be statically determined
11 }
12
13 pub fn main() {}