pub trait ErrorWithLocation: Display {
// Required method
fn location(&self) -> Location;
}Expand description
Represents an error that has a location in the source code.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".