add ui-tests
This commit is contained in:
parent
f267d9dc19
commit
e3d5eaf2bb
2 changed files with 9 additions and 0 deletions
|
|
@ -14,6 +14,10 @@ where
|
|||
Vec::<A>::new()
|
||||
}
|
||||
|
||||
pub fn yes_array_into_vec<T>() -> Vec<T> {
|
||||
[].into()
|
||||
}
|
||||
|
||||
use std::collections::VecDeque;
|
||||
|
||||
pub fn yes_vecdeque_partial_eq_array<A, B>() -> impl PartialEq<[B; 32]>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
use std::{convert::TryFrom, rc::Rc, sync::Arc};
|
||||
|
||||
pub fn no_vec() {
|
||||
let v: Vec<_> = [0; 33].into();
|
||||
//~^ ERROR the trait bound `std::vec::Vec<u8>: std::convert::From<[u8; 33]>` is not satisfied
|
||||
}
|
||||
|
||||
pub fn no_box() {
|
||||
let boxed_slice = Box::new([0; 33]) as Box<[i32]>;
|
||||
let boxed_array = <Box<[i32; 33]>>::try_from(boxed_slice);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue