// A dyn slice of any trait that requires Debug can be debug printed.
// For example, DynSlice<dyn Error>.

use dyn_slice::DynSlice;
use std::fmt::Debug;

fn main() {
    let array: [u8; 4] = [1, 2, 3, 4];

    // Create the first dyn slice
    let slice = DynSlice::<dyn Debug>::new(&array);

    // Debug print the slice
    println!("{slice:?}");
}

// Test the example (this can be ignored)
#[test]
fn test() {
    main()
}
