Update UI test expectations
This commit is contained in:
parent
cf8c0d7a04
commit
3bd46f1aec
24 changed files with 46 additions and 46 deletions
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
|
||||
error[E0369]: cannot add `std::boxed::Box<isize>` to `std::boxed::Box<isize>`
|
||||
--> $DIR/autoderef-full-lval.rs:15:24
|
||||
|
|
||||
LL | let z: isize = a.x + b.y;
|
||||
|
|
@ -8,7 +8,7 @@ LL | let z: isize = a.x + b.y;
|
|||
|
|
||||
= note: an implementation of `std::ops::Add` might be missing for `std::boxed::Box<isize>`
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
|
||||
error[E0369]: cannot add `std::boxed::Box<isize>` to `std::boxed::Box<isize>`
|
||||
--> $DIR/autoderef-full-lval.rs:21:33
|
||||
|
|
||||
LL | let answer: isize = forty.a + two.a;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `%` cannot be applied to type `&&{integer}`
|
||||
error[E0369]: cannot mod `&&{integer}` by `{integer}`
|
||||
--> $DIR/binary-op-on-double-ref.rs:4:11
|
||||
|
|
||||
LL | x % 2 == 0
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `^` cannot be applied to type `std::string::String`
|
||||
error[E0369]: no implementation for `std::string::String ^ std::string::String`
|
||||
--> $DIR/binop-bitxor-str.rs:3:37
|
||||
|
|
||||
LL | fn main() { let x = "a".to_string() ^ "b".to_string(); }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `*` cannot be applied to type `bool`
|
||||
error[E0369]: cannot multiply `bool` to `bool`
|
||||
--> $DIR/binop-mul-bool.rs:3:26
|
||||
|
|
||||
LL | fn main() { let x = true * false; }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `bool`
|
||||
error[E0369]: cannot add `{integer}` to `bool`
|
||||
--> $DIR/binop-typeck.rs:6:15
|
||||
|
|
||||
LL | let z = x + y;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `()`
|
||||
error[E0369]: cannot add `()` to `()`
|
||||
--> $DIR/for-loop-type-error.rs:2:16
|
||||
|
|
||||
LL | let x = () + ();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
|
||||
error[E0369]: cannot add `{integer}` to `std::boxed::Box<isize>`
|
||||
--> $DIR/issue-14915.rs:6:22
|
||||
|
|
||||
LL | println!("{}", x + 1);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error[E0610]: `{integer}` is a primitive type and therefore doesn't have fields
|
|||
LL | 1.create_a_type_error[
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `()`
|
||||
error[E0369]: cannot add `()` to `()`
|
||||
--> $DIR/issue-24363.rs:3:11
|
||||
|
|
||||
LL | ()+()
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `A`
|
||||
error[E0369]: cannot add `A` to `A`
|
||||
--> $DIR/issue-28837.rs:6:7
|
||||
|
|
||||
LL | a + a;
|
||||
|
|
@ -8,7 +8,7 @@ LL | a + a;
|
|||
|
|
||||
= note: an implementation of `std::ops::Add` might be missing for `A`
|
||||
|
||||
error[E0369]: binary operation `-` cannot be applied to type `A`
|
||||
error[E0369]: cannot substract `A` from `A`
|
||||
--> $DIR/issue-28837.rs:8:7
|
||||
|
|
||||
LL | a - a;
|
||||
|
|
@ -18,7 +18,7 @@ LL | a - a;
|
|||
|
|
||||
= note: an implementation of `std::ops::Sub` might be missing for `A`
|
||||
|
||||
error[E0369]: binary operation `*` cannot be applied to type `A`
|
||||
error[E0369]: cannot multiply `A` to `A`
|
||||
--> $DIR/issue-28837.rs:10:7
|
||||
|
|
||||
LL | a * a;
|
||||
|
|
@ -28,7 +28,7 @@ LL | a * a;
|
|||
|
|
||||
= note: an implementation of `std::ops::Mul` might be missing for `A`
|
||||
|
||||
error[E0369]: binary operation `/` cannot be applied to type `A`
|
||||
error[E0369]: cannot divide `A` by `A`
|
||||
--> $DIR/issue-28837.rs:12:7
|
||||
|
|
||||
LL | a / a;
|
||||
|
|
@ -38,7 +38,7 @@ LL | a / a;
|
|||
|
|
||||
= note: an implementation of `std::ops::Div` might be missing for `A`
|
||||
|
||||
error[E0369]: binary operation `%` cannot be applied to type `A`
|
||||
error[E0369]: cannot mod `A` by `A`
|
||||
--> $DIR/issue-28837.rs:14:7
|
||||
|
|
||||
LL | a % a;
|
||||
|
|
@ -48,7 +48,7 @@ LL | a % a;
|
|||
|
|
||||
= note: an implementation of `std::ops::Rem` might be missing for `A`
|
||||
|
||||
error[E0369]: binary operation `&` cannot be applied to type `A`
|
||||
error[E0369]: no implementation for `A & A`
|
||||
--> $DIR/issue-28837.rs:16:7
|
||||
|
|
||||
LL | a & a;
|
||||
|
|
@ -58,7 +58,7 @@ LL | a & a;
|
|||
|
|
||||
= note: an implementation of `std::ops::BitAnd` might be missing for `A`
|
||||
|
||||
error[E0369]: binary operation `|` cannot be applied to type `A`
|
||||
error[E0369]: no implementation for `A | A`
|
||||
--> $DIR/issue-28837.rs:18:7
|
||||
|
|
||||
LL | a | a;
|
||||
|
|
@ -68,7 +68,7 @@ LL | a | a;
|
|||
|
|
||||
= note: an implementation of `std::ops::BitOr` might be missing for `A`
|
||||
|
||||
error[E0369]: binary operation `<<` cannot be applied to type `A`
|
||||
error[E0369]: no implementation for `A << A
|
||||
--> $DIR/issue-28837.rs:20:7
|
||||
|
|
||||
LL | a << a;
|
||||
|
|
@ -78,7 +78,7 @@ LL | a << a;
|
|||
|
|
||||
= note: an implementation of `std::ops::Shl` might be missing for `A`
|
||||
|
||||
error[E0369]: binary operation `>>` cannot be applied to type `A`
|
||||
error[E0369]: no implementation for `A >> A
|
||||
--> $DIR/issue-28837.rs:22:7
|
||||
|
|
||||
LL | a >> a;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `{integer}`
|
||||
error[E0369]: cannot add `{integer}` to `{integer}`
|
||||
--> $DIR/issue-31076.rs:13:15
|
||||
|
|
||||
LL | let x = 5 + 6;
|
||||
|
|
@ -8,7 +8,7 @@ LL | let x = 5 + 6;
|
|||
|
|
||||
= note: an implementation of `std::ops::Add` might be missing for `{integer}`
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `i32`
|
||||
error[E0369]: cannot add `i32` to `i32`
|
||||
--> $DIR/issue-31076.rs:15:18
|
||||
|
|
||||
LL | let y = 5i32 + 6i32;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `*` cannot be applied to type `&T`
|
||||
error[E0369]: cannot multiply `&T` to `&T`
|
||||
--> $DIR/issue-35668.rs:2:23
|
||||
|
|
||||
LL | a.iter().map(|a| a*a)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `*` cannot be applied to type `Thing`
|
||||
error[E0369]: cannot multiply `{integer}` to `Thing`
|
||||
--> $DIR/issue-3820.rs:14:15
|
||||
|
|
||||
LL | let w = u * 3;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `()`
|
||||
error[E0369]: cannot add `()` to `()`
|
||||
--> $DIR/issue-40610.rs:4:8
|
||||
|
|
||||
LL | () + f(&[1.0]);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `&str`
|
||||
error[E0369]: cannot add `{integer}` to `&str`
|
||||
--> $DIR/issue-41394.rs:2:12
|
||||
|
|
||||
LL | A = "" + 1
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `&str`
|
||||
error[E0369]: cannot add `&str` to `&str`
|
||||
--> $DIR/issue-47377.rs:4:14
|
||||
|
|
||||
LL | let _a = b + ", World!";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `&str`
|
||||
error[E0369]: cannot add `&str` to `&str`
|
||||
--> $DIR/issue-47380.rs:3:35
|
||||
|
|
||||
LL | println!("🦀🦀🦀🦀🦀"); let _a = b + ", World!";
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ LL | #![feature(or_patterns)]
|
|||
|
|
||||
= note: `#[warn(incomplete_features)]` on by default
|
||||
|
||||
error[E0369]: binary operation `|` cannot be applied to type `E`
|
||||
error[E0369]: no implementation for `E | ()`
|
||||
--> $DIR/or-patterns-syntactic-fail.rs:24:22
|
||||
|
|
||||
LL | let _ = |A | B: E| ();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `*` cannot be applied to type `std::vec::Vec<isize>`
|
||||
error[E0369]: cannot multiply `{integer}` to `std::vec::Vec<isize>`
|
||||
--> $DIR/pattern-tyvar-2.rs:3:71
|
||||
|
|
||||
LL | fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3; } _ => { panic!(); } } }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `&str`
|
||||
error[E0369]: cannot add `&str` to `&str`
|
||||
--> $DIR/issue-39018.rs:2:22
|
||||
|
|
||||
LL | let x = "Hello " + "World!";
|
||||
|
|
@ -12,7 +12,7 @@ help: `to_owned()` can be used to create an owned `String` from a string referen
|
|||
LL | let x = "Hello ".to_owned() + "World!";
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `World`
|
||||
error[E0369]: cannot add `World` to `World`
|
||||
--> $DIR/issue-39018.rs:8:26
|
||||
|
|
||||
LL | let y = World::Hello + World::Goodbye;
|
||||
|
|
@ -22,7 +22,7 @@ LL | let y = World::Hello + World::Goodbye;
|
|||
|
|
||||
= note: an implementation of `std::ops::Add` might be missing for `World`
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `&str`
|
||||
error[E0369]: cannot add `std::string::String` to `&str`
|
||||
--> $DIR/issue-39018.rs:11:22
|
||||
|
|
||||
LL | let x = "Hello " + "World!".to_owned();
|
||||
|
|
@ -36,7 +36,7 @@ help: `to_owned()` can be used to create an owned `String` from a string referen
|
|||
LL | let x = "Hello ".to_owned() + &"World!".to_owned();
|
||||
| ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `&std::string::String`
|
||||
error[E0369]: cannot add `&std::string::String` to `&std::string::String`
|
||||
--> $DIR/issue-39018.rs:26:16
|
||||
|
|
||||
LL | let _ = &a + &b;
|
||||
|
|
@ -50,7 +50,7 @@ help: String concatenation appends the string on the right to the string on the
|
|||
LL | let _ = a + &b;
|
||||
| ^
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `&std::string::String`
|
||||
error[E0369]: cannot add `std::string::String` to `&std::string::String`
|
||||
--> $DIR/issue-39018.rs:27:16
|
||||
|
|
||||
LL | let _ = &a + b;
|
||||
|
|
@ -73,7 +73,7 @@ LL | let _ = a + b;
|
|||
| expected `&str`, found struct `std::string::String`
|
||||
| help: consider borrowing here: `&b`
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `&std::string::String`
|
||||
error[E0369]: cannot add `std::string::String` to `&std::string::String`
|
||||
--> $DIR/issue-39018.rs:30:15
|
||||
|
|
||||
LL | let _ = e + b;
|
||||
|
|
@ -87,7 +87,7 @@ help: `to_owned()` can be used to create an owned `String` from a string referen
|
|||
LL | let _ = e.to_owned() + &b;
|
||||
| ^^^^^^^^^^^^ ^^
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `&std::string::String`
|
||||
error[E0369]: cannot add `&std::string::String` to `&std::string::String`
|
||||
--> $DIR/issue-39018.rs:31:15
|
||||
|
|
||||
LL | let _ = e + &b;
|
||||
|
|
@ -101,7 +101,7 @@ help: `to_owned()` can be used to create an owned `String` from a string referen
|
|||
LL | let _ = e.to_owned() + &b;
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `&std::string::String`
|
||||
error[E0369]: cannot add `&str` to `&std::string::String`
|
||||
--> $DIR/issue-39018.rs:32:15
|
||||
|
|
||||
LL | let _ = e + d;
|
||||
|
|
@ -115,7 +115,7 @@ help: `to_owned()` can be used to create an owned `String` from a string referen
|
|||
LL | let _ = e.to_owned() + d;
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `&std::string::String`
|
||||
error[E0369]: cannot add `&&str` to `&std::string::String`
|
||||
--> $DIR/issue-39018.rs:33:15
|
||||
|
|
||||
LL | let _ = e + &d;
|
||||
|
|
@ -129,7 +129,7 @@ help: `to_owned()` can be used to create an owned `String` from a string referen
|
|||
LL | let _ = e.to_owned() + &d;
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `&&str`
|
||||
error[E0369]: cannot add `&&str` to `&&str`
|
||||
--> $DIR/issue-39018.rs:34:16
|
||||
|
|
||||
LL | let _ = &c + &d;
|
||||
|
|
@ -139,7 +139,7 @@ LL | let _ = &c + &d;
|
|||
|
|
||||
= note: an implementation of `std::ops::Add` might be missing for `&&str`
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `&&str`
|
||||
error[E0369]: cannot add `&str` to `&&str`
|
||||
--> $DIR/issue-39018.rs:35:16
|
||||
|
|
||||
LL | let _ = &c + d;
|
||||
|
|
@ -149,7 +149,7 @@ LL | let _ = &c + d;
|
|||
|
|
||||
= note: an implementation of `std::ops::Add` might be missing for `&&str`
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `&str`
|
||||
error[E0369]: cannot add `&&str` to `&str`
|
||||
--> $DIR/issue-39018.rs:36:15
|
||||
|
|
||||
LL | let _ = c + &d;
|
||||
|
|
@ -163,7 +163,7 @@ help: `to_owned()` can be used to create an owned `String` from a string referen
|
|||
LL | let _ = c.to_owned() + &d;
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error[E0369]: binary operation `+` cannot be applied to type `&str`
|
||||
error[E0369]: cannot add `&str` to `&str`
|
||||
--> $DIR/issue-39018.rs:37:15
|
||||
|
|
||||
LL | let _ = c + d;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `&std::string::String`
|
||||
error[E0369]: cannot add `&str` to `&std::string::String`
|
||||
--> $DIR/str-concat-on-double-ref.rs:4:15
|
||||
|
|
||||
LL | let c = a + b;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `&str`
|
||||
error[E0369]: cannot add `&str` to `&str`
|
||||
--> $DIR/non-1-width-unicode-multiline-label.rs:5:260
|
||||
|
|
||||
LL | ...ཽཾཿ྄ཱྀྀྂྃ྅྆྇ྈྉྊྋྌྍྎྏྐྑྒྒྷྔྕྖྗྙྚྛྜྜྷྞྟྠྡྡྷྣྤྥྦྦྷྨྩྪྫྫྷྭྮྯྰྱྲླྴྵྶྷྸྐྵྺྻྼ྾྿࿀࿁࿂࿃࿄࿅࿆࿇...࿋࿌࿎࿏࿐࿑࿒࿓࿔࿕࿖࿗࿘࿙࿚"; let _a = unicode_is_fun + " really fun!";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `*` cannot be applied to type `&T`
|
||||
error[E0369]: cannot multiply `f64` to `&T`
|
||||
--> $DIR/trait-resolution-in-overloaded-op.rs:8:7
|
||||
|
|
||||
LL | a * b
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `T`
|
||||
error[E0369]: cannot add `T` to `T`
|
||||
--> $DIR/missing_trait_impl.rs:5:15
|
||||
|
|
||||
LL | let z = x + y;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0369]: binary operation `+` cannot be applied to type `std::vec::Vec<R>`
|
||||
error[E0369]: cannot add `std::vec::Vec<R>` to `std::vec::Vec<R>`
|
||||
--> $DIR/vec-res-add.rs:16:15
|
||||
|
|
||||
LL | let k = i + j;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue