File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ of its items will then be imported under a module named the same as the library.
5
5
This module generally behaves the same way as any other module.
6
6
7
7
``` rust,ignore
8
- use rary;
8
+ // extern crate rary; // May be required for Rust 2015 edition or earlier
9
9
10
10
fn main() {
11
11
rary::public_function();
@@ -25,14 +25,3 @@ called rary's `public_function()`
25
25
called rary's `indirect_access()`, that
26
26
> called rary's `private_function()`
27
27
```
28
-
29
- ## ` extern crate `
30
-
31
- In rare cases, an explicit ` extern crate ` declaration is also required for older
32
- Rust editions (2015 or earlier). It may also be required for certain libraries
33
- such as ` proc_macro ` or ` test ` (which are shipped with ` rustc ` ).
34
- ``` rust,ignore
35
- extern crate rary;
36
- use rary::public_function;
37
- // ...
38
- ```
You can’t perform that action at this time.
0 commit comments