diff options
Diffstat (limited to 'library/core/src/str/traits.rs')
| -rw-r--r-- | library/core/src/str/traits.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/str/traits.rs b/library/core/src/str/traits.rs index 971c8e829c6..4f228edf78e 100644 --- a/library/core/src/str/traits.rs +++ b/library/core/src/str/traits.rs @@ -825,9 +825,8 @@ unsafe impl const SliceIndex<str> for ops::RangeToInclusive<usize> { /// assert!(Point::from_str("(1 2)").is_err()); /// ``` #[stable(feature = "rust1", since = "1.0.0")] -#[const_trait] #[rustc_const_unstable(feature = "const_convert", issue = "143773")] -pub trait FromStr: Sized { +pub const trait FromStr: Sized { /// The associated error which can be returned from parsing. #[stable(feature = "rust1", since = "1.0.0")] type Err; |
