mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-21 12:07:31 +00:00
10 lines
199 B
Rust
10 lines
199 B
Rust
![]() |
use crate::LangItem;
|
||
|
|
||
|
pub struct LangItemError(pub LangItem);
|
||
|
|
||
|
impl ToString for LangItemError {
|
||
|
fn to_string(&self) -> String {
|
||
|
format!("requires `{}` lang_item", self.0.name())
|
||
|
}
|
||
|
}
|