]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/reproducible-build/reproducible-build-aux.rs
Revert changes to the reproducible-builds test
[rust.git] / src / test / run-make / reproducible-build / reproducible-build-aux.rs
1 // Copyright 2016 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 #![crate_type="lib"]
12
13 pub static STATIC: i32 = 1234;
14
15 pub struct Struct<T1, T2> {
16     _t1: std::marker::PhantomData<T1>,
17     _t2: std::marker::PhantomData<T2>,
18 }
19
20 pub fn regular_fn(_: i32) {}
21
22 pub fn generic_fn<T1, T2>() {}
23
24 impl<T1, T2> Drop for Struct<T1, T2> {
25     fn drop(&mut self) {}
26 }
27
28 pub enum Enum {
29     Variant1,
30     Variant2(u32),
31     Variant3 { x: u32 }
32 }
33
34 pub struct TupleStruct(pub i8, pub i16, pub i32, pub i64);
35
36 pub trait Trait<T1, T2> {
37     fn foo(&self);
38 }