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

7 lines
105 B
Rust
Raw Normal View History

2020-09-30 13:24:50 -05:00
fn main() {
let a = &[];
let b: &Vec<u8> = &vec![];
a > b;
//~^ ERROR mismatched types
}