rust/tests/run-make/reproducible-build/reproducible-build-aux.rs
Nicholas Nethercote 3079bd96b9 Run rustfmt on tests/run-make/.
With the exception of `tests/run-make/translation/test.rs`, which has a
syntax error.

The expected output in `rustdoc-error-lines/rmake.rs`'s required slight
tweaking.

The two `reproducible-build.rs` files need `// ignore-tidy-linelength`
because rustfmt produces lines longer than 100 chars, which tidy doesn't
like, yuk.
2024-05-31 21:30:08 +10:00

29 lines
479 B
Rust

#![crate_type = "lib"]
pub static STATIC: i32 = 1234;
pub struct Struct<T1, T2> {
_t1: std::marker::PhantomData<T1>,
_t2: std::marker::PhantomData<T2>,
}
pub fn regular_fn(_: i32) {}
pub fn generic_fn<T1, T2>() {}
impl<T1, T2> Drop for Struct<T1, T2> {
fn drop(&mut self) {}
}
pub enum Enum {
Variant1,
Variant2(u32),
Variant3 { x: u32 },
}
pub struct TupleStruct(pub i8, pub i16, pub i32, pub i64);
pub trait Trait<T1, T2> {
fn foo(&self);
}