]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/deriving-clone-struct.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / deriving-clone-struct.rs
1 // Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #[derive(Clone)]
12 struct S {
13     _int: int,
14     _i8: i8,
15     _i16: i16,
16     _i32: i32,
17     _i64: i64,
18
19     _uint: uint,
20     _u8: u8,
21     _u16: u16,
22     _u32: u32,
23     _u64: u64,
24
25     _f32: f32,
26     _f64: f64,
27
28     _bool: bool,
29     _char: char,
30     _nil: ()
31 }
32
33 pub fn main() {}