File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
compiler/rustc_error_codes/src/error_codes Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ In Rust 2015, paths in `use` statements are relative to the crate root. To
1010import items relative to the current and parent modules, use the ` self:: ` and
1111` super:: ` prefixes, respectively.
1212
13- In Rust 2018, paths in ` use ` statements are relative to the current module
14- unless they begin with the name of a crate or a literal ` crate:: ` , in which
15- case they start from the crate root. As in Rust 2015 code, the ` self:: ` and
16- ` super:: ` prefixes refer to the current and parent modules respectively.
13+ In Rust 2018 or later , paths in ` use ` statements are relative to the current
14+ module unless they begin with the name of a crate or a literal ` crate:: ` , in
15+ which case they start from the crate root. As in Rust 2015 code, the ` self:: `
16+ and ` super:: ` prefixes refer to the current and parent modules respectively.
1717
1818Also verify that you didn't misspell the import name and that the import exists
1919in the module from where you tried to import it. Example:
@@ -38,8 +38,8 @@ use core::any;
3838# fn main() {}
3939```
4040
41- In Rust 2018 the ` extern crate ` declaration is not required and you can instead
42- just ` use ` it:
41+ Since Rust 2018 the ` extern crate ` declaration is not required and
42+ you can instead just ` use ` it:
4343
4444``` edition2018
4545use core::any; // No extern crate required in Rust 2018.
You can’t perform that action at this time.
0 commit comments