Update tests.
This commit is contained in:
parent
67bb7ba3ea
commit
47adb652d3
3 changed files with 7 additions and 6 deletions
|
@ -34,10 +34,11 @@ fn bar() ({
|
||||||
((::alloc::fmt::format as
|
((::alloc::fmt::format as
|
||||||
for<'a> fn(Arguments<'a>) -> String {format})(((<#[lang = "format_arguments"]>::new_v1
|
for<'a> fn(Arguments<'a>) -> String {format})(((<#[lang = "format_arguments"]>::new_v1
|
||||||
as
|
as
|
||||||
fn(&[&'static str], &[ArgumentV1<'_>]) -> Arguments<'_> {Arguments::<'_>::new_v1})((&([("test"
|
fn(&[&'static str], &[core::fmt::ArgumentV1<'_>]) -> Arguments<'_> {Arguments::<'_>::new_v1})((&([("test"
|
||||||
as &str)] as [&str; 1]) as &[&str; 1]),
|
as &str)] as [&str; 1]) as &[&str; 1]),
|
||||||
(&([] as [ArgumentV1<'_>; 0]) as &[ArgumentV1<'_>; 0])) as
|
(&([] as [core::fmt::ArgumentV1<'_>; 0]) as
|
||||||
Arguments<'_>)) as String);
|
&[core::fmt::ArgumentV1<'_>; 0])) as Arguments<'_>)) as
|
||||||
|
String);
|
||||||
(res as String)
|
(res as String)
|
||||||
} as String);
|
} as String);
|
||||||
} as ())
|
} as ())
|
||||||
|
|
|
@ -15,7 +15,7 @@ LL | format!("{:X}", "3");
|
||||||
NonZeroIsize
|
NonZeroIsize
|
||||||
and 21 others
|
and 21 others
|
||||||
= note: required for `&str` to implement `UpperHex`
|
= note: required for `&str` to implement `UpperHex`
|
||||||
note: required by a bound in `ArgumentV1::<'a>::new_upper_hex`
|
note: required by a bound in `core::fmt::ArgumentV1::<'a>::new_upper_hex`
|
||||||
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
||||||
= note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `arg_new` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `arg_new` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ LL | send(format_args!("{:?}", c));
|
||||||
| |
|
| |
|
||||||
| required by a bound introduced by this call
|
| required by a bound introduced by this call
|
||||||
|
|
|
|
||||||
= help: within `[ArgumentV1<'_>]`, the trait `Sync` is not implemented for `core::fmt::Opaque`
|
= help: within `[core::fmt::ArgumentV1<'_>]`, the trait `Sync` is not implemented for `core::fmt::Opaque`
|
||||||
= note: required because it appears within the type `&core::fmt::Opaque`
|
= note: required because it appears within the type `&core::fmt::Opaque`
|
||||||
= note: required because it appears within the type `ArgumentV1<'_>`
|
= note: required because it appears within the type `ArgumentV1<'_>`
|
||||||
= note: required because it appears within the type `[ArgumentV1<'_>]`
|
= note: required because it appears within the type `[ArgumentV1<'_>]`
|
||||||
= note: required for `&[ArgumentV1<'_>]` to implement `Send`
|
= note: required for `&[core::fmt::ArgumentV1<'_>]` to implement `Send`
|
||||||
= note: required because it appears within the type `Arguments<'_>`
|
= note: required because it appears within the type `Arguments<'_>`
|
||||||
note: required by a bound in `send`
|
note: required by a bound in `send`
|
||||||
--> $DIR/send-sync.rs:1:12
|
--> $DIR/send-sync.rs:1:12
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue