You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't repro this on latest master. Instead I get a compiler error:
test.rs:27:20: 27:29 error: cannot move a value of type test::DataFormat: the size of test::DataFormat cannot be statically determined [E0161]
test.rs:27 Ok(box Undefined)
^~~~~~~~~
error: aborting due to previous error
You probably meant for DataFormat to be:
enum DataFormat {
Something(String),
Undefined
}
The code then successfully compiles. I suspect this was DST fallout that got fixed already.
Os is
Ubuntu 14.04.1 LTS
onamd64
uname -a
isLinux ubuntu 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
rustc -v
isrustc 0.12.0-pre-nightly (e024017f6 2014-09-04 20:21:02 +0000)
Code (as minimal as i could get it to not work):
Output (with warnings skipped):
The text was updated successfully, but these errors were encountered: