File tree 1 file changed +6
-6
lines changed
compiler/rustc_error_codes/src/error_codes
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
10
10
import items relative to the current and parent modules, use the ` self:: ` and
11
11
` super:: ` prefixes, respectively.
12
12
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.
17
17
18
18
Also verify that you didn't misspell the import name and that the import exists
19
19
in the module from where you tried to import it. Example:
@@ -38,8 +38,8 @@ use core::any;
38
38
# fn main() {}
39
39
```
40
40
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:
43
43
44
44
``` edition2018
45
45
use core::any; // No extern crate required in Rust 2018.
You can’t perform that action at this time.
0 commit comments