mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Remove F: Fn bound from FromFn struct
This commit is contained in:
@@ -1236,9 +1236,7 @@ pub fn from_fn<F: Fn(&mut fmt::Formatter<'_>) -> fmt::Result>(f: F) -> FromFn<F>
|
||||
///
|
||||
/// Created with [`from_fn`].
|
||||
#[stable(feature = "fmt_from_fn", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub struct FromFn<F>(F)
|
||||
where
|
||||
F: Fn(&mut fmt::Formatter<'_>) -> fmt::Result;
|
||||
pub struct FromFn<F>(F);
|
||||
|
||||
#[stable(feature = "fmt_from_fn", since = "CURRENT_RUSTC_VERSION")]
|
||||
impl<F> fmt::Debug for FromFn<F>
|
||||
|
||||
Reference in New Issue
Block a user