Skip to content

Commit 3bd46f1

Browse files
Update UI test expectations
1 parent cf8c0d7 commit 3bd46f1

24 files changed

+46
-46
lines changed

src/test/ui/autoderef-full-lval.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
1+
error[E0369]: cannot add `std::boxed::Box<isize>` to `std::boxed::Box<isize>`
22
--> $DIR/autoderef-full-lval.rs:15:24
33
|
44
LL | let z: isize = a.x + b.y;
@@ -8,7 +8,7 @@ LL | let z: isize = a.x + b.y;
88
|
99
= note: an implementation of `std::ops::Add` might be missing for `std::boxed::Box<isize>`
1010

11-
error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
11+
error[E0369]: cannot add `std::boxed::Box<isize>` to `std::boxed::Box<isize>`
1212
--> $DIR/autoderef-full-lval.rs:21:33
1313
|
1414
LL | let answer: isize = forty.a + two.a;

src/test/ui/binary-op-on-double-ref.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0369]: binary operation `%` cannot be applied to type `&&{integer}`
1+
error[E0369]: cannot mod `&&{integer}` by `{integer}`
22
--> $DIR/binary-op-on-double-ref.rs:4:11
33
|
44
LL | x % 2 == 0

src/test/ui/binop/binop-bitxor-str.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0369]: binary operation `^` cannot be applied to type `std::string::String`
1+
error[E0369]: no implementation for `std::string::String ^ std::string::String`
22
--> $DIR/binop-bitxor-str.rs:3:37
33
|
44
LL | fn main() { let x = "a".to_string() ^ "b".to_string(); }

src/test/ui/binop/binop-mul-bool.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0369]: binary operation `*` cannot be applied to type `bool`
1+
error[E0369]: cannot multiply `bool` to `bool`
22
--> $DIR/binop-mul-bool.rs:3:26
33
|
44
LL | fn main() { let x = true * false; }

src/test/ui/binop/binop-typeck.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0369]: binary operation `+` cannot be applied to type `bool`
1+
error[E0369]: cannot add `{integer}` to `bool`
22
--> $DIR/binop-typeck.rs:6:15
33
|
44
LL | let z = x + y;

src/test/ui/for/for-loop-type-error.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0369]: binary operation `+` cannot be applied to type `()`
1+
error[E0369]: cannot add `()` to `()`
22
--> $DIR/for-loop-type-error.rs:2:16
33
|
44
LL | let x = () + ();

src/test/ui/issues/issue-14915.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
1+
error[E0369]: cannot add `{integer}` to `std::boxed::Box<isize>`
22
--> $DIR/issue-14915.rs:6:22
33
|
44
LL | println!("{}", x + 1);

src/test/ui/issues/issue-24363.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
44
LL | 1.create_a_type_error[
55
| ^^^^^^^^^^^^^^^^^^^
66

7-
error[E0369]: binary operation `+` cannot be applied to type `()`
7+
error[E0369]: cannot add `()` to `()`
88
--> $DIR/issue-24363.rs:3:11
99
|
1010
LL | ()+()

src/test/ui/issues/issue-28837.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0369]: binary operation `+` cannot be applied to type `A`
1+
error[E0369]: cannot add `A` to `A`
22
--> $DIR/issue-28837.rs:6:7
33
|
44
LL | a + a;
@@ -8,7 +8,7 @@ LL | a + a;
88
|
99
= note: an implementation of `std::ops::Add` might be missing for `A`
1010

11-
error[E0369]: binary operation `-` cannot be applied to type `A`
11+
error[E0369]: cannot substract `A` from `A`
1212
--> $DIR/issue-28837.rs:8:7
1313
|
1414
LL | a - a;
@@ -18,7 +18,7 @@ LL | a - a;
1818
|
1919
= note: an implementation of `std::ops::Sub` might be missing for `A`
2020

21-
error[E0369]: binary operation `*` cannot be applied to type `A`
21+
error[E0369]: cannot multiply `A` to `A`
2222
--> $DIR/issue-28837.rs:10:7
2323
|
2424
LL | a * a;
@@ -28,7 +28,7 @@ LL | a * a;
2828
|
2929
= note: an implementation of `std::ops::Mul` might be missing for `A`
3030

31-
error[E0369]: binary operation `/` cannot be applied to type `A`
31+
error[E0369]: cannot divide `A` by `A`
3232
--> $DIR/issue-28837.rs:12:7
3333
|
3434
LL | a / a;
@@ -38,7 +38,7 @@ LL | a / a;
3838
|
3939
= note: an implementation of `std::ops::Div` might be missing for `A`
4040

41-
error[E0369]: binary operation `%` cannot be applied to type `A`
41+
error[E0369]: cannot mod `A` by `A`
4242
--> $DIR/issue-28837.rs:14:7
4343
|
4444
LL | a % a;
@@ -48,7 +48,7 @@ LL | a % a;
4848
|
4949
= note: an implementation of `std::ops::Rem` might be missing for `A`
5050

51-
error[E0369]: binary operation `&` cannot be applied to type `A`
51+
error[E0369]: no implementation for `A & A`
5252
--> $DIR/issue-28837.rs:16:7
5353
|
5454
LL | a & a;
@@ -58,7 +58,7 @@ LL | a & a;
5858
|
5959
= note: an implementation of `std::ops::BitAnd` might be missing for `A`
6060

61-
error[E0369]: binary operation `|` cannot be applied to type `A`
61+
error[E0369]: no implementation for `A | A`
6262
--> $DIR/issue-28837.rs:18:7
6363
|
6464
LL | a | a;
@@ -68,7 +68,7 @@ LL | a | a;
6868
|
6969
= note: an implementation of `std::ops::BitOr` might be missing for `A`
7070

71-
error[E0369]: binary operation `<<` cannot be applied to type `A`
71+
error[E0369]: no implementation for `A << A
7272
--> $DIR/issue-28837.rs:20:7
7373
|
7474
LL | a << a;
@@ -78,7 +78,7 @@ LL | a << a;
7878
|
7979
= note: an implementation of `std::ops::Shl` might be missing for `A`
8080

81-
error[E0369]: binary operation `>>` cannot be applied to type `A`
81+
error[E0369]: no implementation for `A >> A
8282
--> $DIR/issue-28837.rs:22:7
8383
|
8484
LL | a >> a;

src/test/ui/issues/issue-31076.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0369]: binary operation `+` cannot be applied to type `{integer}`
1+
error[E0369]: cannot add `{integer}` to `{integer}`
22
--> $DIR/issue-31076.rs:13:15
33
|
44
LL | let x = 5 + 6;
@@ -8,7 +8,7 @@ LL | let x = 5 + 6;
88
|
99
= note: an implementation of `std::ops::Add` might be missing for `{integer}`
1010

11-
error[E0369]: binary operation `+` cannot be applied to type `i32`
11+
error[E0369]: cannot add `i32` to `i32`
1212
--> $DIR/issue-31076.rs:15:18
1313
|
1414
LL | let y = 5i32 + 6i32;

0 commit comments

Comments
 (0)