From 0e89f570d224ee08b6e32aa9ea8ea44a4e9244f3 Mon Sep 17 00:00:00 2001 From: Alexander Regueiro Date: Sun, 4 Nov 2018 04:47:10 +0000 Subject: Added tests. --- src/test/ui/error-codes/E0191.rs | 3 +-- src/test/ui/error-codes/E0719.rs | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 src/test/ui/error-codes/E0719.rs (limited to 'src/test/ui/error-codes') diff --git a/src/test/ui/error-codes/E0191.rs b/src/test/ui/error-codes/E0191.rs index 489ebb033f8..c35c7e10f5a 100644 --- a/src/test/ui/error-codes/E0191.rs +++ b/src/test/ui/error-codes/E0191.rs @@ -14,5 +14,4 @@ trait Trait { type Foo = Trait; //~ ERROR E0191 -fn main() { -} +fn main() {} 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![feature(trait_alias)] + +trait I32Iterator = Iterator; + +pub fn main() { + let _: &I32Iterator; //~ ERROR E0719 +} -- cgit 1.4.1-3-g733a5