|
| 1 | +error[E0277]: the trait bound `std::boxed::Box<[i32; 33]>: std::convert::From<std::boxed::Box<[i32]>>` is not satisfied |
| 2 | + --> $DIR/alloc-types-no-impls-length-33.rs:7:23 |
| 3 | + | |
| 4 | +LL | let boxed_array = <Box<[i32; 33]>>::try_from(boxed_slice); |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<std::boxed::Box<[i32]>>` is not implemented for `std::boxed::Box<[i32; 33]>` |
| 6 | + | |
| 7 | + = help: the following implementations were found: |
| 8 | + <std::boxed::Box<(dyn std::error::Error + 'a)> as std::convert::From<E>> |
| 9 | + <std::boxed::Box<(dyn std::error::Error + 'static)> as std::convert::From<&str>> |
| 10 | + <std::boxed::Box<(dyn std::error::Error + 'static)> as std::convert::From<std::borrow::Cow<'a, str>>> |
| 11 | + <std::boxed::Box<(dyn std::error::Error + 'static)> as std::convert::From<std::string::String>> |
| 12 | + and 16 others |
| 13 | + = note: required because of the requirements on the impl of `std::convert::Into<std::boxed::Box<[i32; 33]>>` for `std::boxed::Box<[i32]>` |
| 14 | + = note: required because of the requirements on the impl of `std::convert::TryFrom<std::boxed::Box<[i32]>>` for `std::boxed::Box<[i32; 33]>` |
| 15 | + |
| 16 | +error[E0277]: the trait bound `std::boxed::Box<[i32; 33]>: std::convert::TryFrom<std::boxed::Box<[i32]>>` is not satisfied |
| 17 | + --> $DIR/alloc-types-no-impls-length-33.rs:7:23 |
| 18 | + | |
| 19 | +LL | let boxed_array = <Box<[i32; 33]>>::try_from(boxed_slice); |
| 20 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::TryFrom<std::boxed::Box<[i32]>>` is not implemented for `std::boxed::Box<[i32; 33]>` |
| 21 | + | |
| 22 | + = help: the following implementations were found: |
| 23 | + <std::boxed::Box<[T; _]> as std::convert::TryFrom<std::boxed::Box<[T]>>> |
| 24 | + |
| 25 | +error[E0277]: the trait bound `std::rc::Rc<[i32; 33]>: std::convert::From<std::rc::Rc<[i32]>>` is not satisfied |
| 26 | + --> $DIR/alloc-types-no-impls-length-33.rs:14:23 |
| 27 | + | |
| 28 | +LL | let boxed_array = <Rc<[i32; 33]>>::try_from(boxed_slice); |
| 29 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<std::rc::Rc<[i32]>>` is not implemented for `std::rc::Rc<[i32; 33]>` |
| 30 | + | |
| 31 | + = help: the following implementations were found: |
| 32 | + <std::rc::Rc<T> as std::convert::From<T>> |
| 33 | + <std::rc::Rc<T> as std::convert::From<std::boxed::Box<T>>> |
| 34 | + <std::rc::Rc<[T]> as std::convert::From<&[T]>> |
| 35 | + <std::rc::Rc<[T]> as std::convert::From<std::vec::Vec<T>>> |
| 36 | + and 8 others |
| 37 | + = note: required because of the requirements on the impl of `std::convert::Into<std::rc::Rc<[i32; 33]>>` for `std::rc::Rc<[i32]>` |
| 38 | + = note: required because of the requirements on the impl of `std::convert::TryFrom<std::rc::Rc<[i32]>>` for `std::rc::Rc<[i32; 33]>` |
| 39 | + |
| 40 | +error[E0277]: the trait bound `std::rc::Rc<[i32; 33]>: std::convert::TryFrom<std::rc::Rc<[i32]>>` is not satisfied |
| 41 | + --> $DIR/alloc-types-no-impls-length-33.rs:14:23 |
| 42 | + | |
| 43 | +LL | let boxed_array = <Rc<[i32; 33]>>::try_from(boxed_slice); |
| 44 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::TryFrom<std::rc::Rc<[i32]>>` is not implemented for `std::rc::Rc<[i32; 33]>` |
| 45 | + | |
| 46 | + = help: the following implementations were found: |
| 47 | + <std::rc::Rc<[T; _]> as std::convert::TryFrom<std::rc::Rc<[T]>>> |
| 48 | + |
| 49 | +error[E0277]: the trait bound `std::sync::Arc<[i32; 33]>: std::convert::From<std::sync::Arc<[i32]>>` is not satisfied |
| 50 | + --> $DIR/alloc-types-no-impls-length-33.rs:21:23 |
| 51 | + | |
| 52 | +LL | let boxed_array = <Arc<[i32; 33]>>::try_from(boxed_slice); |
| 53 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<std::sync::Arc<[i32]>>` is not implemented for `std::sync::Arc<[i32; 33]>` |
| 54 | + | |
| 55 | + = help: the following implementations were found: |
| 56 | + <std::sync::Arc<T> as std::convert::From<T>> |
| 57 | + <std::sync::Arc<T> as std::convert::From<std::boxed::Box<T>>> |
| 58 | + <std::sync::Arc<[T]> as std::convert::From<&[T]>> |
| 59 | + <std::sync::Arc<[T]> as std::convert::From<std::vec::Vec<T>>> |
| 60 | + and 8 others |
| 61 | + = note: required because of the requirements on the impl of `std::convert::Into<std::sync::Arc<[i32; 33]>>` for `std::sync::Arc<[i32]>` |
| 62 | + = note: required because of the requirements on the impl of `std::convert::TryFrom<std::sync::Arc<[i32]>>` for `std::sync::Arc<[i32; 33]>` |
| 63 | + |
| 64 | +error[E0277]: the trait bound `std::sync::Arc<[i32; 33]>: std::convert::TryFrom<std::sync::Arc<[i32]>>` is not satisfied |
| 65 | + --> $DIR/alloc-types-no-impls-length-33.rs:21:23 |
| 66 | + | |
| 67 | +LL | let boxed_array = <Arc<[i32; 33]>>::try_from(boxed_slice); |
| 68 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::TryFrom<std::sync::Arc<[i32]>>` is not implemented for `std::sync::Arc<[i32; 33]>` |
| 69 | + | |
| 70 | + = help: the following implementations were found: |
| 71 | + <std::sync::Arc<[T; _]> as std::convert::TryFrom<std::sync::Arc<[T]>>> |
| 72 | + |
| 73 | +error: aborting due to 6 previous errors |
| 74 | + |
| 75 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments