rust/tests/ui/array-slice-vec/slice-to-vec-comparison.rs

7 lines
105 B
Rust

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