Disable failing doctest
This commit is contained in:
parent
b5682f984b
commit
4fd38f82a3
1 changed files with 2 additions and 4 deletions
|
@ -182,10 +182,8 @@ pub trait AnyComponent {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// # use cursive_core::views::TextComponent;
|
||||
/// # use cursive_core::view::Component;
|
||||
/// let boxed: Box<Component> = Box::new(TextComponent::new("text"));
|
||||
/// let text: Box<TextComponent> = boxed.as_boxed_any().downcast().unwrap();
|
||||
/// // let boxed: Box<Component> = Box::new(TextComponent::new("text"));
|
||||
/// // let text: Box<TextComponent> = boxed.as_boxed_any().downcast().unwrap();
|
||||
/// ```
|
||||
fn as_boxed_any(self: Box<Self>) -> Box<dyn Any>;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue