This commit is contained in:
varkor 2018-04-17 19:52:58 +01:00
parent 6330bf24fe
commit 98e3e82ece
7 changed files with 21 additions and 22 deletions

View file

@ -17,7 +17,6 @@ struct Error;
enum Enum {
A {
x: Error //~ ERROR
//~^ ERROR
}
}

View file

@ -17,7 +17,6 @@ struct Error;
enum Enum {
A(
Error //~ ERROR
//~^ ERROR
)
}

View file

@ -16,7 +16,6 @@ struct Error;
#[derive(PartialOrd,PartialEq)]
struct Struct {
x: Error //~ ERROR
//~^ ERROR
}
fn main() {}

View file

@ -16,7 +16,6 @@ struct Error;
#[derive(PartialOrd,PartialEq)]
struct Struct(
Error //~ ERROR
//~^ ERROR
);
fn main() {}

View file

@ -15,27 +15,21 @@ struct AllTheRanges {
a: Range<usize>,
//~^ ERROR PartialOrd
//~^^ ERROR Ord
//~^^^ the trait bound
b: RangeTo<usize>,
//~^ ERROR PartialOrd
//~^^ ERROR Ord
//~^^^ no method named `partial_cmp`
c: RangeFrom<usize>,
//~^ ERROR PartialOrd
//~^^ ERROR Ord
//~^^^ the trait bound
d: RangeFull,
//~^ ERROR PartialOrd
//~^^ ERROR Ord
//~^^^ no method named `partial_cmp`
e: RangeInclusive<usize>,
//~^ ERROR PartialOrd
//~^^ ERROR Ord
//~^^^ the trait bound
f: RangeToInclusive<usize>,
//~^ ERROR PartialOrd
//~^^ ERROR Ord
//~^^^ no method named `partial_cmp`
}
fn main() {}