3
我的代碼:「特徵綁定std :: fmt :: Display不滿意」是什麼意思?
extern crate time;
fn main() {
println!("{}", time::get_time());
}
我的錯誤是:
Error 'the trait bound time::Timespec: std::fmt::Display is not satisfied
我的代碼:「特徵綁定std :: fmt :: Display不滿意」是什麼意思?
extern crate time;
fn main() {
println!("{}", time::get_time());
}
我的錯誤是:
Error 'the trait bound time::Timespec: std::fmt::Display is not satisfied
非常感謝您的解釋 –
@ДмитрийКомар也嘗試閱讀整個編譯器錯誤。這不僅僅是噪聲,它通常是非常有用的:'''注意:'time :: Timespec'不能使用默認的格式化程序進行格式化;如果您使用的是格式字符串,請嘗試使用':?' –