diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-02-23 03:42:32 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-02-26 20:24:02 +0300 |
| commit | fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4 (patch) | |
| tree | 1eb1a49b4750e2704d3d724fb4a12ea4e2237eff /src/test/ui/fmt | |
| parent | cdbd8c2f2aa69c4b8fe6f004449440e87c4ab87e (diff) | |
| download | rust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.tar.gz rust-fa2d9fc4b9e578d95fbf65613d1bf732fbdfb0d4.zip | |
Update UI tests
Diffstat (limited to 'src/test/ui/fmt')
| -rw-r--r-- | src/test/ui/fmt/format-string-error.stderr | 4 | ||||
| -rw-r--r-- | src/test/ui/fmt/send-sync.stderr | 8 |
2 files changed, 6 insertions, 6 deletions
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: Send>(_: T) {} +LL | fn send<T: 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: Sync>(_: T) {} +LL | fn sync<T: Sync>(_: T) {} | ^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 2 previous errors |
