From fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Fri, 23 Feb 2018 03:42:32 +0300 Subject: Update UI tests --- src/test/ui/fmt/format-string-error.stderr | 4 ++-- src/test/ui/fmt/send-sync.stderr | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/test/ui/fmt') diff --git a/src/test/ui/fmt/format-string-error.stderr b/src/test/ui/fmt/format-string-error.stderr index 1c775929cf4..a7a66722e52 100644 --- a/src/test/ui/fmt/format-string-error.stderr +++ b/src/test/ui/fmt/format-string-error.stderr @@ -1,7 +1,7 @@ error: invalid format string: expected `'}'` but string was terminated --> $DIR/format-string-error.rs:12:5 | -12 | println!("{"); +LL | println!("{"); | ^^^^^^^^^^^^^^ | = note: if you intended to print `{`, you can escape it using `{{` @@ -10,7 +10,7 @@ error: invalid format string: expected `'}'` but string was terminated error: invalid format string: unmatched `}` found --> $DIR/format-string-error.rs:14:5 | -14 | println!("}"); +LL | println!("}"); | ^^^^^^^^^^^^^^ | = note: if you intended to print `}`, you can escape it using `}}` diff --git a/src/test/ui/fmt/send-sync.stderr b/src/test/ui/fmt/send-sync.stderr index 7e2b6a43dd4..0943b64c5c0 100644 --- a/src/test/ui/fmt/send-sync.stderr +++ b/src/test/ui/fmt/send-sync.stderr @@ -1,7 +1,7 @@ error[E0277]: the trait bound `*mut std::ops::Fn() + 'static: std::marker::Sync` is not satisfied in `[std::fmt::ArgumentV1<'_>]` --> $DIR/send-sync.rs:18:5 | -18 | send(format_args!("{:?}", c)); //~ ERROR Sync` is not satisfied +LL | send(format_args!("{:?}", c)); //~ ERROR Sync` is not satisfied | ^^^^ `*mut std::ops::Fn() + 'static` cannot be shared between threads safely | = help: within `[std::fmt::ArgumentV1<'_>]`, the trait `std::marker::Sync` is not implemented for `*mut std::ops::Fn() + 'static` @@ -15,13 +15,13 @@ error[E0277]: the trait bound `*mut std::ops::Fn() + 'static: std::marker::Sync` note: required by `send` --> $DIR/send-sync.rs:11:1 | -11 | fn send(_: T) {} +LL | fn send(_: T) {} | ^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `*mut std::ops::Fn() + 'static: std::marker::Sync` is not satisfied in `std::fmt::Arguments<'_>` --> $DIR/send-sync.rs:19:5 | -19 | sync(format_args!("{:?}", c)); //~ ERROR Sync` is not satisfied +LL | sync(format_args!("{:?}", c)); //~ ERROR Sync` is not satisfied | ^^^^ `*mut std::ops::Fn() + 'static` cannot be shared between threads safely | = help: within `std::fmt::Arguments<'_>`, the trait `std::marker::Sync` is not implemented for `*mut std::ops::Fn() + 'static` @@ -35,7 +35,7 @@ error[E0277]: the trait bound `*mut std::ops::Fn() + 'static: std::marker::Sync` note: required by `sync` --> $DIR/send-sync.rs:12:1 | -12 | fn sync(_: T) {} +LL | fn sync(_: T) {} | ^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 2 previous errors -- cgit 1.4.1-3-g733a5