]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/derive-no-std-not-supported.rs
Update dependencies
[rust.git] / src / test / ui-fulldeps / derive-no-std-not-supported.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 #![feature(rustc_private)]
5 #![no_std]
6
7 extern crate serialize as rustc_serialize;
8
9 #[derive(RustcEncodable)]
10 struct Bar {
11     x: u32,
12 }
13
14 #[derive(RustcDecodable)]
15 struct Baz {
16     x: u32,
17 }
18
19 fn main() {
20     Bar { x: 0 };
21     Baz { x: 0 };
22 }