summaryrefslogtreecommitdiffstats
path: root/src/test/ui/array-slice-vec/slice-to-vec-comparison.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/array-slice-vec/slice-to-vec-comparison.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/array-slice-vec/slice-to-vec-comparison.rs b/src/test/ui/array-slice-vec/slice-to-vec-comparison.rs
new file mode 100644
index 000000000..7026a4900
--- /dev/null
+++ b/src/test/ui/array-slice-vec/slice-to-vec-comparison.rs
@@ -0,0 +1,6 @@
+fn main() {
+ let a = &[];
+ let b: &Vec<u8> = &vec![];
+ a > b;
+ //~^ ERROR mismatched types
+}