You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ rustc construct.rs
construct.rs:13:12: 13:21 error: unresolved name
construct.rs:13 let n = Node::new();
^~~~~~~~~
construct.rs:13:12: 13:21 error: use of undeclared module `Node`
construct.rs:13 let n = Node::new();
^~~~~~~~~
construct.rs:13:12: 13:21 error: unresolved name: Node::new
construct.rs:13 let n = Node::new();
^~~~~~~~~
error: aborting due to 3 previous errors
The text was updated successfully, but these errors were encountered:
@lucian1900: You still have to mark static methods with the static keyword. Otherwise the compiler interprets it as using the deprecated implicit self.
Trying to compile this
Errors out with this
The text was updated successfully, but these errors were encountered: