mirror of https://github.com/rust-lang/rust
27 lines
736 B
Plaintext
27 lines
736 B
Plaintext
error: expected item, found `import`
|
|
--> $DIR/use_instead_of_import.rs:3:1
|
|
|
|
|
LL | import std::{
|
|
| ^^^^^^ help: items are imported using the `use` keyword
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
error: aborting due to 4 previous errors
|
|
|