Add missing use statements to doc example

This commit is contained in:
Alexandre Bury 2018-01-03 16:51:07 +01:00
parent 778c1f1d71
commit 5af367fa18

View File

@ -14,6 +14,11 @@ pub trait Identifiable: View + Sized {
/// # Examples
///
/// ```rust,no_run
/// # use cursive::Cursive;
/// # use cursive::views::TextView;
/// # use cursive::view::Boxable;
/// use cursive::view::Identifiable;
///
/// let mut siv = Cursive::new();
/// siv.add_layer(
/// TextView::new("foo")