Skip to content

Commit 5970136

Browse files
committed
Fix some small mistakes
1 parent 6e82517 commit 5970136

File tree

1 file changed

+2
-8
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+2
-8
lines changed

src/librustc_error_codes/error_codes/E0432.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ Erroneous code example:
66
use 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-
159
In Rust 2015, paths in `use` statements are relative to the crate root. To
1610
import items relative to the current and parent modules, use the `self::` and
1711
`super::` prefixes, respectively.
@@ -41,13 +35,13 @@ the crate root):
4135
extern crate core; // Required to use the `core` crate in Rust 2015.
4236
4337
use core::any;
44-
# fn main() { assert!(false); }
38+
# fn main() {}
4539
```
4640

4741
In Rust 2018 the `extern crate` declaration is not required and you can instead
4842
just `use` it:
4943

50-
```
44+
```edition2018
5145
use core::any; // No extern crate required in Rust 2018.
5246
# fn main() {}
5347
```

0 commit comments

Comments
 (0)