File tree 1 file changed +2
-8
lines changed
src/librustc_error_codes/error_codes
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,6 @@ Erroneous code example:
6
6
use something::Foo; // error: unresolved import `something::Foo`.
7
7
```
8
8
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
-
15
9
In Rust 2015, paths in ` use ` statements are relative to the crate root. To
16
10
import items relative to the current and parent modules, use the ` self:: ` and
17
11
` super:: ` prefixes, respectively.
@@ -41,13 +35,13 @@ the crate root):
41
35
extern crate core; // Required to use the `core` crate in Rust 2015.
42
36
43
37
use core::any;
44
- # fn main() { assert!(false); }
38
+ # fn main() {}
45
39
```
46
40
47
41
In Rust 2018 the ` extern crate ` declaration is not required and you can instead
48
42
just ` use ` it:
49
43
50
- ```
44
+ ``` edition2018
51
45
use core::any; // No extern crate required in Rust 2018.
52
46
# fn main() {}
53
47
```
You can’t perform that action at this time.
0 commit comments