Move the checks for Arguments constructors to inline const

This commit is contained in:
Ben Kimock 2024-05-24 16:14:40 -04:00
parent 213ad10c8f
commit 9763222f59
6 changed files with 75 additions and 87 deletions

View file

@ -34,7 +34,7 @@ fn bar() ({
((::alloc::fmt::format as
for<'a> fn(Arguments<'a>) -> String {format})(((format_arguments::new_const
as
fn(&[&'static str]) -> Arguments<'_> {Arguments::<'_>::new_const})((&([("test"
fn(&[&'static str; 1]) -> Arguments<'_> {Arguments::<'_>::new_const::<1>})((&([("test"
as &str)] as [&str; 1]) as &[&str; 1])) as Arguments<'_>))
as String);
(res as String)