summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0719.rs
diff options
context:
space:
mode:
authorAlexander Regueiro <alexreg@me.com>2018-11-04 04:47:10 +0000
committerAlexander Regueiro <alexreg@me.com>2018-11-07 21:57:40 +0000
commit0e89f570d224ee08b6e32aa9ea8ea44a4e9244f3 (patch)
treeb4608c47fb643d3b8955e272b3c322274f788ecc /src/test/ui/error-codes/E0719.rs
parentd08a42bf2c2115fc1869b3a72ee40fa4dd445795 (diff)
downloadrust-0e89f570d224ee08b6e32aa9ea8ea44a4e9244f3.tar.gz
rust-0e89f570d224ee08b6e32aa9ea8ea44a4e9244f3.zip
Added tests.
Diffstat (limited to 'src/test/ui/error-codes/E0719.rs')
-rw-r--r--src/test/ui/error-codes/E0719.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0719.rs b/src/test/ui/error-codes/E0719.rs
new file mode 100644
index 00000000000..951041124bb
--- /dev/null
+++ b/src/test/ui/error-codes/E0719.rs
@@ -0,0 +1,17 @@
+// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+#![feature(trait_alias)]
+
+trait I32Iterator = Iterator<Item = i32>;
+
+pub fn main() {
+    let _: &I32Iterator<Item = f32>; //~ ERROR E0719
+}