diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-08-07 09:27:27 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-08-12 17:58:56 -0400 |
| commit | 91b3e9cac0125e35d65169fb7e06166a078296c7 (patch) | |
| tree | 9d4ee7d97b5ffeec38060a1afa9a386cb08f233d /src/libcore/str | |
| parent | 788a802dad3f273b74150b732d24d37a695d29f6 (diff) | |
| download | rust-91b3e9cac0125e35d65169fb7e06166a078296c7.tar.gz rust-91b3e9cac0125e35d65169fb7e06166a078296c7.zip | |
Fallout in libs -- misc missing bounds uncovered by WF checks.
Diffstat (limited to 'src/libcore/str')
| -rw-r--r-- | src/libcore/str/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 3c9338c2cd2..d5bceb3ba62 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -25,6 +25,7 @@ use default::Default; use fmt; use iter::ExactSizeIterator; use iter::{Map, Iterator, DoubleEndedIterator}; +use marker::Sized; use mem; use ops::{Fn, FnMut, FnOnce}; use option::Option::{self, None, Some}; @@ -37,7 +38,7 @@ pub mod pattern; /// A trait to abstract the idea of creating a new instance of a type from a /// string. #[stable(feature = "rust1", since = "1.0.0")] -pub trait FromStr { +pub trait FromStr: Sized { /// The associated error which can be returned from parsing. #[stable(feature = "rust1", since = "1.0.0")] type Err; |
