This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ use crate::marker::Tuple;
7575) ]
7676#[ fundamental] // so that regex can rely that `&str: !FnMut`
7777#[ must_use = "closures are lazy and do nothing unless called" ]
78+ #[ const_trait]
7879pub trait Fn < Args > : FnMut < Args > {
7980 /// Performs the call operation.
8081 #[ unstable( feature = "fn_traits" , issue = "29625" ) ]
@@ -244,6 +245,7 @@ pub trait Fn<Args: Tuple>: FnMut<Args> {
244245) ]
245246#[ fundamental] // so that regex can rely that `&str: !FnMut`
246247#[ must_use = "closures are lazy and do nothing unless called" ]
248+ #[ const_trait]
247249pub trait FnMut < Args > : FnOnce < Args > {
248250 /// Performs the call operation.
249251 #[ unstable( feature = "fn_traits" , issue = "29625" ) ]
@@ -413,6 +415,7 @@ pub trait FnMut<Args: Tuple>: FnOnce<Args> {
413415) ]
414416#[ fundamental] // so that regex can rely that `&str: !FnMut`
415417#[ must_use = "closures are lazy and do nothing unless called" ]
418+ #[ const_trait]
416419pub trait FnOnce < Args > {
417420 /// The returned type after the call operator is used.
418421 #[ lang = "fn_once_output" ]
You can’t perform that action at this time.
0 commit comments