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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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
}