| 1 | use quickcheckrust-analyzer cargo quickcheck 1.1.0 crate/::quickcheckrust-analyzer cargo quickcheck 1.1.0 tester/quickcheck().; |
| 2 | |
| 3 | fn reverserust-analyzer cargo quickcheck 1.1.0 reverse().<T: Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone#>(xs: &[T]) -> Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<T> { |
| 4 | let mut rev = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![]; |
| 5 | for x in xs { |
| 6 | rev.insertrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]insert().(0, x.clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone#clone().()); |
| 7 | } |
| 8 | rev |
| 9 | } |
| 10 | |
| 11 | fn mainrust-analyzer cargo quickcheck 1.1.0 main().() { |
| 12 | fn equality_after_applying_twicerust-analyzer cargo quickcheck 1.1.0 equality_after_applying_twice().(xs: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<isize>) -> bool { |
| 13 | xs rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/partial_eq/impl#[`Vec<T, A1>`][`PartialEq<Vec<U, A2>>`]eq().==rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/partial_eq/impl#[`Vec<T, A1>`][`PartialEq<Vec<U, A2>>`]eq(). rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/partial_eq/impl#[`Vec<T, A1>`][`PartialEq<Vec<U, A2>>`]eq().reverserust-analyzer cargo quickcheck 1.1.0 reverse().(&reverserust-analyzer cargo quickcheck 1.1.0 reverse().(&xs)) |
| 14 | } |
| 15 | quickcheckrust-analyzer cargo quickcheck 1.1.0 tester/quickcheck().(equality_after_applying_twicerust-analyzer cargo quickcheck 1.1.0 equality_after_applying_twice(). as fn(Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<isize>) -> bool); |
| 16 | } |