pub fn static_err(e: &'static str) -> Box<dyn Error>
Creates an error trait object for a string constant (&'static str).
&'static str
use string_error::*; let x = static_err("Foo"); assert_eq!(x.description(), "Foo");