Fix test failure due to racing commits. (#1802)

This commit is contained in:
Richard Smith
2022-07-28 09:25:14 -07:00
committed by GitHub
parent 64f3284a19
commit f3127d2e83
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class A {}
fn Main() -> i32 {
var a: A = {};
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/operators/fail_no_add.carbon:[[@LINE+2]]: type error in `+`:
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/operators/fail_no_add.carbon:[[@LINE+1]]: could not find implementation of interface AddWith(U = i32) for class A
// CHECK: could not find implementation of interface AddWith(U = i32) for class A
a + 1;
return 0;
}
+1 -1
View File
@@ -15,7 +15,7 @@ class A {}
fn Main() -> i32 {
var a: A = {};
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/operators/fail_no_mul.carbon:[[@LINE+2]]: type error in `*`:
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/operators/fail_no_mul.carbon:[[@LINE+1]]: could not find implementation of interface MulWith(U = i32) for class A
// CHECK: could not find implementation of interface MulWith(U = i32) for class A
a * 1;
return 0;
}
+1 -1
View File
@@ -15,7 +15,7 @@ class A {}
fn Main() -> i32 {
var a: A = {};
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/operators/fail_no_negate.carbon:[[@LINE+2]]: type error in `-`:
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/operators/fail_no_negate.carbon:[[@LINE+1]]: could not find implementation of interface Negate for class A
// CHECK: could not find implementation of interface Negate for class A
-a;
return 0;
}
+1 -1
View File
@@ -15,7 +15,7 @@ class A {}
fn Main() -> i32 {
var a: A = {};
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/operators/fail_no_sub.carbon:[[@LINE+2]]: type error in `-`:
// CHECK: COMPILATION ERROR: {{.*}}/explorer/testdata/operators/fail_no_sub.carbon:[[@LINE+1]]: could not find implementation of interface SubWith(U = i32) for class A
// CHECK: could not find implementation of interface SubWith(U = i32) for class A
a - 1;
return 0;
}