File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/librustc_error_codes/error_codes Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,6 @@ Erroneous code example:
66use something::Foo; // error: unresolved import `something::Foo`.
77```
88
9- Paths in ` use ` statements are relative to the crate root. To import items
10- relative to the current and parent modules, use the ` self:: ` and ` super:: `
11- prefixes, respectively. Also verify that you didn't misspell the import
12- name and that the import exists in the module from where you tried to
13- import it. Example:
14-
159In Rust 2015, paths in ` use ` statements are relative to the crate root. To
1610import items relative to the current and parent modules, use the ` self:: ` and
1711` super:: ` prefixes, respectively.
@@ -41,13 +35,13 @@ the crate root):
4135extern crate core; // Required to use the `core` crate in Rust 2015.
4236
4337use core::any;
44- # fn main() { assert!(false); }
38+ # fn main() {}
4539```
4640
4741In Rust 2018 the ` extern crate ` declaration is not required and you can instead
4842just ` use ` it:
4943
50- ```
44+ ``` edition2018
5145use core::any; // No extern crate required in Rust 2018.
5246# fn main() {}
5347```
You can’t perform that action at this time.
0 commit comments