Skip to content

Commit aa9bd68

Browse files
committed
Rename test struct names to something more sensible
1 parent 8b1742e commit aa9bd68

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/test/ui/nll/trait-associated-constant.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ trait Anything<'a: 'b, 'b> {
99
const AC: Option<&'b str>;
1010
}
1111

12-
struct OKStruct { }
12+
struct OKStruct1 { }
1313

14-
impl<'a: 'b, 'b> Anything<'a, 'b> for OKStruct {
14+
impl<'a: 'b, 'b> Anything<'a, 'b> for OKStruct1 {
1515
const AC: Option<&'b str> = None;
1616
}
1717

18-
struct FailStruct1 { }
18+
struct FailStruct { }
1919

20-
impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
20+
impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct {
2121
const AC: Option<&'c str> = None;
2222
//~^ ERROR: mismatched types
2323
}
2424

25-
struct FailStruct2 { }
25+
struct OKStruct2 { }
2626

27-
impl<'a: 'b, 'b> Anything<'a, 'b> for FailStruct2 {
27+
impl<'a: 'b, 'b> Anything<'a, 'b> for OKStruct2 {
2828
const AC: Option<&'a str> = None;
2929
}
3030

src/test/ui/nll/trait-associated-constant.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ LL | const AC: Option<&'c str> = None;
99
note: the lifetime 'c as defined on the impl at 20:18...
1010
--> $DIR/trait-associated-constant.rs:20:18
1111
|
12-
LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
12+
LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct {
1313
| ^^
1414
note: ...does not necessarily outlive the lifetime 'b as defined on the impl at 20:14
1515
--> $DIR/trait-associated-constant.rs:20:14
1616
|
17-
LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct1 {
17+
LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct {
1818
| ^^
1919

2020
error: aborting due to previous error

0 commit comments

Comments
 (0)