Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
//! # Example with a generic trait with associated types and constraints
//!
//! ```
//! use downcast_rs::{Downcast, impl_downcast};

Check warning on line 140 in src/lib.rs

View workflow job for this annotation

GitHub Actions / build (stable)

needless `fn main` in doctest

Check warning on line 140 in src/lib.rs

View workflow job for this annotation

GitHub Actions / build (stable)

needless `fn main` in doctest

Check warning on line 140 in src/lib.rs

View workflow job for this annotation

GitHub Actions / build (1.56)

needless `fn main` in doctest

Check warning on line 140 in src/lib.rs

View workflow job for this annotation

GitHub Actions / build (1.56)

needless `fn main` in doctest
//!
//! // To create a trait with downcasting methods, extend `Downcast` or `DowncastSync`
//! // and run `impl_downcast!()` on the trait.
Expand Down Expand Up @@ -630,21 +630,6 @@
$($more_tests)*
}
};
(
$test_mod_name:ident,
trait $base_trait:path { $($base_impl:tt)* },
non_sync: { $($non_sync_def:tt)+ },
sync: { $($sync_def:tt)+ }
) => {
test_mod! {
$test_mod_name,
trait $base_trait { $($base_impl:tt)* },
type $base_trait,
non_sync: { $($non_sync_def)* },
sync: { $($sync_def)* }
}
};

}

test_mod!(non_generic, trait Base {},
Expand Down
Loading