Rust कंपाइलर एररएरर
E0063E0063 — Struct में फील्ड्स अनुपस्थित
एक struct सभी आवश्यक फील्ड्स के बिना बनाया जा रहा है।
rustcargo
विवरण देखें E0106किसी फ़ंक्शन signature या struct में एक reference का lifetime parameter अनुपस्थित है।
Rust को explicit lifetime annotations की आवश्यकता होती है जब कई input lifetimes हों और compiler सही output lifetime निर्धारित न कर सके। References वाले struct fields को भी lifetime annotations की आवश्यकता होती है।
फ़ंक्शन signature या struct में lifetime parameters जोड़ें। 'a या अन्य lifetime नामों का उपयोग करें। यदि फ़ंक्शन में केवल एक input reference है, तो compiler आमतौर पर lifetime infer कर सकता है। References की बजाय owned प्रकारों का उपयोग करने पर विचार करें।
struct Foo {
bar: &str, // missing lifetime
}E0063एक struct सभी आवश्यक फील्ड्स के बिना बनाया जा रहा है।
E0384एक वेरिएबल को पुनः असाइन किया जा रहा है लेकिन वह म्यूटेबल घोषित नहीं था।
E0015एक constant expression context में non-const फ़ंक्शन call किया जा रहा है।
E0133एक unsafe फंक्शन या ऑपरेशन unsafe ब्लॉक के बाहर उपयोग किया गया है।
E0520Trait implementation specialization के लिए nightly compiler feature आवश्यक है।
E0600एक unary operator ऐसे type पर लागू किया गया है जो उसे support नहीं करती।