diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2022-07-30 18:01:03 +0000 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2022-09-16 11:48:42 +0800 |
| commit | 81b1810cd7b5f1cb74d498f20fa0ef5887420d33 (patch) | |
| tree | 7dd79d4fc051ce5fdf8f89706ca4b00dba8ff6a7 /library/core/src/convert | |
| parent | 22f6aec42de6bce63f8e43f144058428d4dba0f5 (diff) | |
| download | rust-81b1810cd7b5f1cb74d498f20fa0ef5887420d33.tar.gz rust-81b1810cd7b5f1cb74d498f20fa0ef5887420d33.zip | |
Require `#[const_trait]` for `const` `impl`s
Diffstat (limited to 'library/core/src/convert')
| -rw-r--r-- | library/core/src/convert/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs index 05637c16622..95900828451 100644 --- a/library/core/src/convert/mod.rs +++ b/library/core/src/convert/mod.rs @@ -368,6 +368,7 @@ pub trait Into<T>: Sized { all(_Self = "&str", T = "std::string::String"), note = "to coerce a `{T}` into a `{Self}`, use `&*` as a prefix", ))] +#[const_trait] pub trait From<T>: Sized { /// Converts to this type from the input type. #[lang = "from"] |
