diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-11-06 17:38:47 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2022-11-06 17:38:47 -0500 |
| commit | 01a2a57ac9c7920521cda5a93ffaa5ed0552206b (patch) | |
| tree | a143abee164c11d7b66883a7f329b0463fc632ea /library/core/src/ops/function.rs | |
| parent | b3242f4f1336165903daf363ca0e234c9a0259b2 (diff) | |
| download | rust-01a2a57ac9c7920521cda5a93ffaa5ed0552206b.tar.gz rust-01a2a57ac9c7920521cda5a93ffaa5ed0552206b.zip | |
Fix rebase errors
Diffstat (limited to 'library/core/src/ops/function.rs')
| -rw-r--r-- | library/core/src/ops/function.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/core/src/ops/function.rs b/library/core/src/ops/function.rs index 8d4b0a7ccac..bcf0b8e37bc 100644 --- a/library/core/src/ops/function.rs +++ b/library/core/src/ops/function.rs @@ -75,6 +75,7 @@ use crate::marker::Tuple; )] #[fundamental] // so that regex can rely that `&str: !FnMut` #[must_use = "closures are lazy and do nothing unless called"] +#[const_trait] pub trait Fn<Args>: FnMut<Args> { /// Performs the call operation. #[unstable(feature = "fn_traits", issue = "29625")] @@ -244,6 +245,7 @@ pub trait Fn<Args: Tuple>: FnMut<Args> { )] #[fundamental] // so that regex can rely that `&str: !FnMut` #[must_use = "closures are lazy and do nothing unless called"] +#[const_trait] pub trait FnMut<Args>: FnOnce<Args> { /// Performs the call operation. #[unstable(feature = "fn_traits", issue = "29625")] @@ -413,6 +415,7 @@ pub trait FnMut<Args: Tuple>: FnOnce<Args> { )] #[fundamental] // so that regex can rely that `&str: !FnMut` #[must_use = "closures are lazy and do nothing unless called"] +#[const_trait] pub trait FnOnce<Args> { /// The returned type after the call operator is used. #[lang = "fn_once_output"] |
