rust/tests/ui/array-slice-vec/slice-to-vec-comparison.rs
2023-01-11 09:32:08 +00:00

7 lines
105 B
Rust

fn main() {
let a = &[];
let b: &Vec<u8> = &vec![];
a > b;
//~^ ERROR mismatched types
}