mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
it seems like the make_case_elim doctest ran endlessly, probably because there is nothign to ran and something got confused in rust doctest, solution is to create a dummy main fn
This commit is contained in:
parent
e48fc4c2b2
commit
3cc4b947eb
@ -84,9 +84,6 @@ impl<Context, Target> SynthTyped<Context, Target> for WeakHead<Pure<Target>, Tar
|
||||
/// [make_case_elim!], as follows:
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(arbitrary_enum_discriminant)]
|
||||
/// # #[macro_use] extern crate veloren_common;
|
||||
///
|
||||
/// veloren_common::make_case_elim!(
|
||||
/// my_type_module,
|
||||
/// #[repr(u32)]
|
||||
@ -97,6 +94,10 @@ impl<Context, Target> SynthTyped<Context, Target> for WeakHead<Pure<Target>, Tar
|
||||
/// /* ..., */
|
||||
/// }
|
||||
/// );
|
||||
///
|
||||
/// # fn main() {
|
||||
/// # println!("some_dummy_main");
|
||||
/// # }
|
||||
/// ```
|
||||
///
|
||||
/// This macro automatically does a few things. First, it creates the `enum`
|
||||
@ -105,9 +106,6 @@ impl<Context, Target> SynthTyped<Context, Target> for WeakHead<Pure<Target>, Tar
|
||||
/// few things. In this case:
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(arbitrary_enum_discriminant)]
|
||||
/// # #[macro_use] extern crate veloren_common;
|
||||
///
|
||||
/// #[repr(u32)]
|
||||
/// #[derive(Clone, Copy)]
|
||||
/// pub enum MyType {
|
||||
|
Loading…
Reference in New Issue
Block a user