diff options
| author | Alexander Regueiro <alexreg@me.com> | 2018-11-04 04:47:10 +0000 |
|---|---|---|
| committer | Alexander Regueiro <alexreg@me.com> | 2018-11-07 21:57:40 +0000 |
| commit | 0e89f570d224ee08b6e32aa9ea8ea44a4e9244f3 (patch) | |
| tree | b4608c47fb643d3b8955e272b3c322274f788ecc /src/test/ui/error-codes | |
| parent | d08a42bf2c2115fc1869b3a72ee40fa4dd445795 (diff) | |
| download | rust-0e89f570d224ee08b6e32aa9ea8ea44a4e9244f3.tar.gz rust-0e89f570d224ee08b6e32aa9ea8ea44a4e9244f3.zip | |
Added tests.
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0191.rs | 3 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0719.rs | 17 |
2 files changed, 18 insertions, 2 deletions
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 <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 +} |
