08:00:00
EMAZ-385 - , you need to use the `use` keyword. For example, `use crate::item::Item`. If you are trying to import something from the standard library, you don't need to use `use`, you can just use the item directly. For example, `println!` is a macro that comes from the standard library, and you don't need to import it.To get the `Display` module to work, you need to import the `Display` trait. For example, `use core::fmt::Display`.```rustuse core::fmt::Display;#[derive(Debug)]struct Point { x: i32, y: i32,}impl Display for Point { fn display(&self) -> String { format!("x: {} y: {}", self.x, self.y) }}``````rustuse core::fmt::Display;#[derive(Debug)]struct Point { x: i32, y: i32,}impl Display for Point { fn display(&self) -> String { format!("x: {} y: {}", self.x, self.y) }}``````rustuse core::fmt::Display;#[derive(D) debug D fix for the fix``````rustuse core::fmt::Display;#[derive(D) debug D fix for the fix``````rustuse core::fmt::Display;#[derive(D) debug D fix for the fix``````rustuse core::fmt::Display;#[derive(D) debug D fix for the fix``````rustuse core::fmt::Display;#[derive(D) debug D fix for the fix``````rustuse core::fmt__lmaxing;
2018年11月18日