blob: aadd7524ec67f45d7ebdb612bc6b66c282f042e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
error: expected item, found `import`
--> $DIR/use_instead_of_import.rs:3:1
|
LL | import std::{
| ^^^^^^
|
help: items are imported using the `use` keyword
|
LL - import std::{
LL + use std::{
|
error: expected item, found `require`
--> $DIR/use_instead_of_import.rs:9:1
|
LL | require std::time::Duration;
| ^^^^^^^
|
help: items are imported using the `use` keyword
|
LL - require std::time::Duration;
LL + use std::time::Duration;
|
error: expected item, found `include`
--> $DIR/use_instead_of_import.rs:12:1
|
LL | include std::time::Instant;
| ^^^^^^^
|
help: items are imported using the `use` keyword
|
LL - include std::time::Instant;
LL + use std::time::Instant;
|
error: expected item, found `using`
--> $DIR/use_instead_of_import.rs:15:5
|
LL | pub using std::io;
| ^^^^^
|
help: items are imported using the `use` keyword
|
LL - pub using std::io;
LL + pub use std::io;
|
error: aborting due to 4 previous errors
|