diff --git a/src/test/ui/impl-trait/equality.stderr b/src/test/ui/impl-trait/equality.stderr index a08e77a2151..2206234b777 100644 --- a/src/test/ui/impl-trait/equality.stderr +++ b/src/test/ui/impl-trait/equality.stderr @@ -8,10 +8,10 @@ error[E0308]: mismatched types found type `u32` error[E0277]: the trait bound `u32: std::ops::Add` is not satisfied - --> $DIR/equality.rs:34:9 + --> $DIR/equality.rs:34:11 | 34 | n + sum_to(n - 1) - | ^^^^^^^^^^^^^^^^^ no implementation for `u32 + impl Foo` + | ^ no implementation for `u32 + impl Foo` | = help: the trait `std::ops::Add` is not implemented for `u32` diff --git a/src/test/ui/mismatched_types/binops.stderr b/src/test/ui/mismatched_types/binops.stderr index d97c7813708..1faf72cd760 100644 --- a/src/test/ui/mismatched_types/binops.stderr +++ b/src/test/ui/mismatched_types/binops.stderr @@ -1,56 +1,56 @@ error[E0277]: the trait bound `{integer}: std::ops::Add>` is not satisfied - --> $DIR/binops.rs:12:5 + --> $DIR/binops.rs:12:7 | 12 | 1 + Some(1); - | ^^^^^^^^^^^ no implementation for `{integer} + std::option::Option<{integer}>` + | ^ no implementation for `{integer} + std::option::Option<{integer}>` | = help: the trait `std::ops::Add>` is not implemented for `{integer}` error[E0277]: the trait bound `usize: std::ops::Sub>` is not satisfied - --> $DIR/binops.rs:13:5 + --> $DIR/binops.rs:13:16 | 13 | 2 as usize - Some(1); - | ^^^^^^^^^^^^^^^^^^^^ no implementation for `usize - std::option::Option<{integer}>` + | ^ no implementation for `usize - std::option::Option<{integer}>` | = help: the trait `std::ops::Sub>` is not implemented for `usize` error[E0277]: the trait bound `{integer}: std::ops::Mul<()>` is not satisfied - --> $DIR/binops.rs:14:5 + --> $DIR/binops.rs:14:7 | 14 | 3 * (); - | ^^^^^^ no implementation for `{integer} * ()` + | ^ no implementation for `{integer} * ()` | = help: the trait `std::ops::Mul<()>` is not implemented for `{integer}` error[E0277]: the trait bound `{integer}: std::ops::Div<&str>` is not satisfied - --> $DIR/binops.rs:15:5 + --> $DIR/binops.rs:15:7 | 15 | 4 / ""; - | ^^^^^^ no implementation for `{integer} / &str` + | ^ no implementation for `{integer} / &str` | = help: the trait `std::ops::Div<&str>` is not implemented for `{integer}` error[E0277]: the trait bound `{integer}: std::cmp::PartialEq` is not satisfied - --> $DIR/binops.rs:16:5 + --> $DIR/binops.rs:16:7 | 16 | 5 < String::new(); - | ^^^^^^^^^^^^^^^^^ can't compare `{integer}` with `std::string::String` + | ^ can't compare `{integer}` with `std::string::String` | = help: the trait `std::cmp::PartialEq` is not implemented for `{integer}` error[E0277]: the trait bound `{integer}: std::cmp::PartialOrd` is not satisfied - --> $DIR/binops.rs:16:5 + --> $DIR/binops.rs:16:7 | 16 | 5 < String::new(); - | ^^^^^^^^^^^^^^^^^ can't compare `{integer}` with `std::string::String` + | ^ can't compare `{integer}` with `std::string::String` | = help: the trait `std::cmp::PartialOrd` is not implemented for `{integer}` error[E0277]: the trait bound `{integer}: std::cmp::PartialEq>` is not satisfied - --> $DIR/binops.rs:17:5 + --> $DIR/binops.rs:17:7 | 17 | 6 == Ok(1); - | ^^^^^^^^^^ can't compare `{integer}` with `std::result::Result<{integer}, _>` + | ^^ can't compare `{integer}` with `std::result::Result<{integer}, _>` | = help: the trait `std::cmp::PartialEq>` is not implemented for `{integer}` diff --git a/src/test/ui/span/multiline-span-simple.stderr b/src/test/ui/span/multiline-span-simple.stderr index 057f8fe6ee2..0224cef8da1 100644 --- a/src/test/ui/span/multiline-span-simple.stderr +++ b/src/test/ui/span/multiline-span-simple.stderr @@ -1,13 +1,8 @@ error[E0277]: the trait bound `u32: std::ops::Add<()>` is not satisfied - --> $DIR/multiline-span-simple.rs:23:9 + --> $DIR/multiline-span-simple.rs:23:18 | -23 | foo(1 as u32 + - | _________^ -24 | | -25 | | bar(x, -26 | | -27 | | y), - | |______________^ no implementation for `u32 + ()` +23 | foo(1 as u32 + + | ^ no implementation for `u32 + ()` | = help: the trait `std::ops::Add<()>` is not implemented for `u32`