Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui-fulldeps
/
derive-no-std-not-supported.rs
blob: 1299d82d9c4b9c1503207669858fec75fc1a9351 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
#![
feature
(
rustc_private
)]
#![
no_std
]
extern
crate rustc_serialize
;
#[
derive
(
RustcEncodable
)]
struct
Bar
{
x
:
u32
,
}
#[
derive
(
RustcDecodable
)]
struct
Baz
{
x
:
u32
,
}
fn
main
()
{
Bar
{
x
:
0
};
Baz
{
x
:
0
};
}