summaryrefslogtreecommitdiff
path: root/dhall_core/src/core.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dhall_core/src/core.rs')
-rw-r--r--dhall_core/src/core.rs15
1 files changed, 13 insertions, 2 deletions
diff --git a/dhall_core/src/core.rs b/dhall_core/src/core.rs
index 04c3961..72389c5 100644
--- a/dhall_core/src/core.rs
+++ b/dhall_core/src/core.rs
@@ -268,7 +268,16 @@ pub enum Builtin {
}
pub trait StringLike:
- Display + fmt::Debug + Clone + Hash + Ord + Eq + Into<String> + Default + From<String>
+ Display
+ + fmt::Debug
+ + Clone
+ + Hash
+ + Ord
+ + Eq
+ + Default
+ + Into<String>
+ + From<String>
+ + From<&'static str>
{
}
@@ -279,8 +288,10 @@ impl<T> StringLike for T where
+ Hash
+ Ord
+ Eq
+ + Default
+ Into<String>
- + Default + From<String>
+ + From<String>
+ + From<&'static str>
{
}